// disable caching for evaluated code
if ($_template->source->recompiled
) { $_template->caching = false;
} // checks if template exists
if (!
$_template->source->exists
) { if ($_template->parent instanceof Smarty_Internal_Template
) { $parent_resource = " in '{
$_template->parent->template_resource
}'";
} else { $parent_resource = '';
} throw new SmartyException("Unable to load template {
$_template->source->type
} '{
$_template->source->name
}'{
$parent_resource}"
);
} // read from cache or render
if (!
($_template->caching == Smarty::CACHING_LIFETIME_CURRENT ||
$_template->caching == Smarty::CACHING_LIFETIME_SAVED
) || !
$_template->cached->valid
) { // render template (not loaded and not in cache)
if (!
$_template->source->uncompiled
) { $_smarty_tpl =
$_template;
if ($_template->source->recompiled
) { if ($this->smarty->debugging
) { Smarty_Internal_Debug::
start_compile($_template);
} $code =
$_template->compiler->
compileTemplate($_template);