docs: def get_template(self, name):
          """Get a template from a given name."""
          filename = path.join(self.search_path, *[p for p in name.split('/')
                                                   if p and p[0] != '.'])
          if not path.exists(filename):
              raise TemplateNotFound(name)
          return Template.from_file(filename, self.encoding)