/** * * @param Presenter $presenter * @return FileTemplate */ private function createTemplate(Presenter $presenter) { $template = new FileTemplate(); $latte = new Engine(); $template->registerFilter($latte); $set = MacroSet::install($latte->parser); $template->control = $template->presenter = $presenter; $template->setTranslator($presenter->context->translator); return $template; }