This is how I ended up doing it, there may be a better way.
Code: Select all
global $gCms;
$smarty =& $gCms->GetSmarty();
$output = "Whatever...";
$output .= "{* Smarty tags will work. *}";
require_once $smarty->_get_plugin_filepath('function', 'eval');
echo smarty_function_eval(array('var' => $output), $smarty);