Lines Matching refs:name
72 It's passed the environment and template name and has to return a
78 be the name of the file on the filesystem if it was loaded from there,
100 def load(self, environment, name, globals=None):
113 source, filename, uptodate = self.get_source(environment, name)
119 bucket = bcc.get_bucket(environment, name, filename, source)
125 code = environment.compile(source, name, filename)
207 the name of the python package and the path to the templates in that
294 function receives the name of the template and has to return either
298 >>> def load_template(name):
299 ... if name == 'index.html':
343 prefix, name = template.split(self.delimiter, 1)
347 return loader, name
350 loader, name = self.get_loader(template)
352 return loader.get_source(environment, name)
359 def load(self, environment, name, globals=None):
360 loader, local_name = self.get_loader(name)
366 raise TemplateNotFound(name)
402 def load(self, environment, name, globals=None):
405 return loader.load(environment, name, globals)
408 raise TemplateNotFound(name)
458 def get_template_key(name):
459 return 'tmpl_' + sha1(name.encode('utf-8')).hexdigest()
462 def get_module_filename(name):
463 return ModuleLoader.get_template_key(name) + '.py'
466 def load(self, environment, name, globals=None):
467 key = self.get_template_key(name)
474 raise TemplateNotFound(name)