Lines Matching refs:environment
78 def load_extensions(environment, extensions): argument
86 result[extension.identifier] = extension(environment)
90 def _environment_sanity_check(environment): argument
92 assert issubclass(environment.undefined, Undefined), 'undefined must ' \
94 assert environment.block_start_string != \
95 environment.variable_start_string != \
96 environment.comment_start_string, 'block, variable and comment ' \
98 assert environment.newline_sequence in ('\r', '\r\n', '\n'), \
100 return environment
909 def from_code(cls, environment, code, globals, uptodate=None): argument
914 'environment': environment,
918 rv = cls._from_namespace(environment, namespace, globals)
923 def from_module_dict(cls, environment, module_dict, globals): argument
929 return cls._from_namespace(environment, module_dict, globals)
932 def _from_namespace(cls, environment, namespace, globals): argument
934 t.environment = environment
949 namespace['environment'] = environment
969 return self.environment.handle_exception(exc_info, True)
993 yield self.environment.handle_exception(exc_info, True)
1003 return new_context(self.environment, self.name, self.blocks,