Added an extension for improving compatibility with twig templates