public get_base_template ( array $base ) : string | ||
$base | array | Base structure @return string Generated source code |
return | string |
function get_base_template($base)
{
if (!Haanga_AST::is_str($base)) {
throw new Exception("Dynamic inheritance is not supported for compilated templates");
}
$file = $base['string'];
list($this->subtemplate, $new_code) = $this->compile_required_template($file);
return $new_code . "\n\n";
}