code: def load_template(self, templatename, template_string=None):
          
          if template_string is not None:
              return Template(template_string, **self.tmpl_options)
          # Translate TG dot notation to normal / template path
          if '/' not in templatename:
              templatename = '/' + templatename.replace('.', '/') + '.' +\
                      self.extension
  
          # Lookup template
          return self.lookup.get_template(templatename)
docs: Loads a template from a file or a string