changed Twig extension template_file() to getTemplateFile()
changed handling for Twig extensions