Source for file function.eval.php
Documentation is available at function.eval.php
* Smarty {eval} function plugin
* Purpose: evaluate a template variable as a template<br>
* @link http://smarty.php.net/manual/en/language.function.eval.php {eval}
if (!isset ($params['var'])) {
if($params['var'] == '') {
$smarty->_compile_source('evaluated template', $params['var'], $_var_compiled);
$smarty->_eval('?>' . $_var_compiled);
if (!empty($params['assign'])) {
$smarty->assign($params['assign'], $_contents);
/* vim: set expandtab: */
|