Remove limitation for '.twig' file extension

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