Remove limitation for templates with '.twig' file extension

Makes the use of the Twig Extension work for templates with any filename, not only those which end with '.twig'.