setOptions(Fenom::AUTO_RELOAD | Fenom::FORCE_COMPILE); $fenom->addAccessorSmart('fetch', 'fetch', Fenom::ACCESSOR_METHOD); var_dump($fenom->compileCode('{$.fetch("template.tpl")}')->getBody()); //var_dump($fenom->compile("bug158/main.tpl", [])->getTemplateCode()); //var_dump($fenom->display("bug158/main.tpl", [])); // $fenom->getTemplate("problem.tpl");