Skip to content

template_file

Required: No
Type: List of template files
Condition: Yes

List of Jinja2 template files. Template files are generated into the autogen directory in the project upon project generation. If the filename ends with .jinja or .jinja2, the extension is stripped.

The autogen/ directory is automatically added as an include path in exported IDE projects. If any template file has export set to true, the same applies to the autogen/export/ directory. Both the autogen and autogen/export/ directories shall be created on disk by the project generator, even if they are empty.

See the page on template files for more details.

Key Required Type Description
path Yes String Path to template file
condition No List of features The template file is added if all the given features are present
unless No List of features The template file is added unless any of the given features are present
export No Boolean Default false if not set. If true, the file is copied into the autogen/export/ directory instead of the default autogen/ directory.
1
2
template_file:
  - path: path/to/my_file.c.jinja
Back to top