Skip to content

templates

Templates API

The templates module provides the C template files used to generate the AOT code.

Functions

load_template

load_template(name: str) -> Template

Load an AOT jijna2 template given filename

Parameters:

  • name

    (str) –

    Template filename (e.g. conv.c)

Returns:

  • Template ( Template ) –

    The loaded template

update_env_globals

update_env_globals(globals_dict: dict)

Update the Jinja2 environment globals with the provided dictionary.

Parameters:

  • globals_dict

    (dict) –

    Dictionary of global variables to update.