Home | History | Annotate | Download | only in jinja2

Lines Matching refs:environment

39     implement a custom loading mechanism.  The environment provides a
54 def get_source(self, environment, template):
70 def get_source(self, environment, template):
72 It's passed the environment and template name and has to return a
100 def load(self, environment, name, globals=None):
113 source, filename, uptodate = self.get_source(environment, name)
117 bcc = environment.bytecode_cache
119 bucket = bcc.get_bucket(environment, name, filename, source)
125 code = environment.compile(source, name, filename)
134 return environment.template_class.from_code(environment, code,
159 def get_source(self, environment, template):
221 def get_source(self, environment, template):
272 def get_source(self, environment, template):
303 def get_source(self, environment, template):
339 def get_source(self, environment, template):
342 return loader.get_source(environment, name)
349 def load(self, environment, name, globals=None):
352 return loader.load(environment, local_name)
383 def get_source(self, environment, template):
386 return loader.get_source(environment, template)
392 def load(self, environment, name, globals=None):
395 return loader.load(environment, name, globals)
421 Templates can be precompiled with :meth:`Environment.compile_templates`.
456 environment, name, globals=None):
470 return environment.template_class.from_module_dict(
471 environment, mod.__dict__, globals)