Lines Matching refs:environment
55 def generate(node, environment, name, filename, stream=None,
60 generator = CodeGenerator(environment, name, filename, stream, defer_init)
366 def __init__(self, environment, name, filename, stream=None,
370 self.environment = environment
587 self.writeline('%s = environment.%s[%r]' %
737 self.write('Macro(environment, macro, %r, (%s), (' %
759 eval_ctx = EvalContext(self.environment, self.name)
768 # environment into a local name
769 envenv = not self.defer_init and ', environment=environment' or ''
903 self.writeline('parent_template = environment.get_template(', node)
939 self.writeline('template = environment.%s(' % func_name, node)
972 self.write('environment.get_template(')
986 self.write('included_template = environment.get_template(')
1005 self.writeline('l_%s = environment.undefined(%r %% '
1087 self.writeline("l_loop = environment.undefined(%r, name='loop')" %
1218 if self.environment.finalize:
1219 finalize = lambda x: text_type(self.environment.finalize(x))
1288 if self.environment.finalize is not None:
1289 self.write('environment.finalize(')
1324 if self.environment.finalize is not None:
1325 self.write('environment.finalize(')
1423 if self.environment.sandboxed and \
1424 operator in self.environment.intercepted_binops:
1425 self.write('environment.call_binop(context, %r, ' % operator)
1439 if self.environment.sandboxed and \
1440 operator in self.environment.intercepted_unops:
1441 self.write('environment.call_unop(context, %r, ' % operator)
1487 self.write('environment.getattr(')
1492 # slices bypass the environment getitem method.
1499 self.write('environment.getitem(')
1517 func = self.environment.filters.get(node.name)
1525 self.write('environment, ')
1544 if node.name not in self.environment.tests:
1554 self.write('environment.undefined(%r)' % ('the inline if-'
1567 if self.environment.sandboxed:
1568 self.write('environment.call(context, ')
1593 self.write('environment.' + node.name)
1596 self.write('environment.extensions[%r].%s' % (node.identifier, node.name))