Using strings as template resources

From: Date: Wed, 09 Jan 2002 16:46:13 +0000
Subject: Using strings as template resources
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2506@lists.php.net to get a copy of this message
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? Thanks, Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo--

« previous php.smarty.general (#2506) next »