Encapsulated file templates as twig templates