Re: Using strings as template resources
| From: | Andrei Zmievski | Date: | Wed, 09 Jan 2002 16:51:56 +0000 |
| Subject: | Re: Using strings as template resources | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2507@lists.php.net to get a copy of this message | ||
On Wed, 09 Jan 2002, Peter Bowyer wrote:
> Yes I have read the documentation, and cannot see any way to do what I want
> :-)
>
> I'm building a CMS using Smarty, and the articles will contain Smarty
> custom functions. Now, when the article is being written I want to have
> the ability to preview it. As the content's in a textarea, the template's
> contents is going to be passed as a string. Without writing this string to
> a temporary file and passing that to a resource function, how can I get the
> string to be treated as a template and the custom functions to be
> interpreted?
There is no way to do it right now. That I can think of.
-Andrei
Any sufficiently advanced Operating System
is indistinguishable from Linux.
- Jim Dennis