templates
Templates API
The templates module provides the jinja2 template files used to generate the AOT code.
Functions
load_template
Load a Jinja2 template given filename
Parameters:
-
(namestr) –Template filename (e.g. conv.c)
Returns:
-
Template(Template) –The loaded template
update_env_globals
Update the Jinja2 environment globals with the provided dictionary.
Parameters:
-
(globals_dictdict) –Dictionary of global variables to update.