Conversion of templates from Smarty to Twig