jinja2.Template.from_code

classmethod Template.from_code(environment, code, globals, uptodate=None)[source]

Creates a template object from compiled code and the globals. This is used by the loaders and environment to create a template object.