return $this->source;
case 'compiled':
$this->compiled =
$this->source->
getCompiled($this);
return $this->compiled;
case 'cached':
if (!
class_exists('Smarty_Template_Cached'
)) { include SMARTY_SYSPLUGINS_DIR . 'smarty_cacheresource.php';
} $this->cached =
new Smarty_Template_Cached($this);
return $this->cached;
case 'compiler':
$this->smarty->
loadPlugin($this->source->compiler_class
);
$this->compiler =
new $this->source->
compiler_class($this->source->template_lexer_class,
$this->source->template_parser_class,
$this->smarty
);
return $this->compiler;
// FIXME: routing of template -> smarty attributes
default:
if (property_exists($this->smarty,
$property_name)) { return $this->smarty->
$property_name;
}