def get_template(self, environ, path, expand=True): template_lookup = TemplateLookup(environ) lookup = template_lookup.lookup() path = os.path.join(os.path.sep, *path) if expand: template = get_template_name(environ) path = path % template return lookup.get_template(path)