Lines Matching refs:environment
19 from jinja2.environment import Environment
70 def __init__(self, environment): argument
71 self.environment = environment
73 def bind(self, environment): argument
77 rv.environment = environment
167 def __init__(self, environment): argument
168 Extension.__init__(self, environment)
169 environment.globals['_'] = _gettext_alias
170 environment.extend(
197 self.environment.newstyle_gettext = newstyle
198 if self.environment.newstyle_gettext:
201 self.environment.globals.update(
208 self.environment.globals.pop(key, None)
212 source = self.environment.parse(source)
346 if not vars_referenced and not self.environment.newstyle_gettext:
369 if self.environment.newstyle_gettext:
595 environment = Environment(
614 environment.newstyle_gettext = True
618 node = environment.parse(source)
619 tokens = list(environment.lex(environment.preprocess(source)))