code: def get_template(self, template_name):
          
          try:
              return self.template_class(self.engine.get_template(template_name))
          except mako_exceptions.TemplateLookupException as exc:
              raise TemplateDoesNotExist(exc.args)
          except mako_exceptions.CompileException as exc:
              raise TemplateSyntaxError(exc.args)
docs: Trying to get a compiled template given a template name
          :param template_name: The template name.
          :raises: - TemplateDoesNotExist if no such template exists.
                   - TemplateSyntaxError  if we couldn't compile the
                      template using Mako syntax.
          :return: Compiled Template.