Getting templates from strings
| From: | Geranium | Date: | Mon, 26 Aug 2002 10:24:32 +0000 |
| Subject: | Getting templates from strings | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5825@lists.php.net to get a copy of this message | ||
I'm in a situation where I have a template already in a string and I
want to pass it to Smarty to use in a fetch operation. However, to do
that I have to pass in a named template - a template in a string does't
have a name to give to smarty, so I can't seem to do it.
I have started putting together a resource for smarty to accept a
template in a string, but I'm concerned that this seems to be a
remarkably complex route to do something so simple.
Has anyone already written a resource to handle this?
Or is there some better way I've missed?