// get template source
$_content =
$template->source->content;
// run prefilter if required
if (isset($this->smarty->autoload_filters
['pre'
]) ||
isset($this->smarty->registered_filters
['pre'
])) { $_content = Smarty_Internal_Filter_Handler::
runFilter('pre',
$_content,
$template);
} // on empty template just return header
if ($_content == ''
) { if ($this->suppressTemplatePropertyHeader
) { $code = '';
} else { $code =
$template_header .
$template->
createTemplateCodeFrame();
} return $code;
} // call compiler
$_compiled_code =
$this->
doCompile($_content);
} while ($this->abort_and_recompile
);
$this->template->source->filepath =
$saved_filepath;
// free memory
unset($this->parser->root_buffer,
$this->parser->current_buffer,
$this->parser,
$this->lex,
$this->template
);
self::
$_tag_objects = array
();
// return compiled code to template object