Template.from_code#

classmethod Template.from_code(environment, code, globals, uptodate=None)#

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

Parameters:
Return type:

Template