eval function
| From: | Monte Ohrt | Date: | Mon, 04 Mar 2002 15:18:21 +0000 |
| Subject: | eval function | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2936@lists.php.net to get a copy of this message | ||
For those that missed it, there is now an eval function that comes with
Smarty 2.0. It allows you to treat the contents of a variable as if it
were a template. This is great for imbedding variables into config
files, or similar needs.
{eval var=$foo assign="bar"}
$bar now contains the processed contents of $foo as a template.
Monte