'Return a compiled Template object for the given template name,
handling template inheritance recursively.'

def get_template(self, template_name):

    (template, origin) = self.find_template(template_name)
    if (not hasattr(template, 'render')):
        template = Template(template, origin, template_name, engine=self)
    return template
