Add TwigExtension
Convert base template layout to Twig