Slim Twig view extension functions