Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 573 Bytes

File metadata and controls

10 lines (8 loc) · 573 Bytes

Custom functions and variables

The globals directory can define custom Jinja2 globals which will be available in all Jinja2 templates. Typically, this is used for custom functions. The file name should match the name of the function or variable to be defined, and export a variable with that name. E.g. globals/myfunction.py can define a function called myfunction that will become available to all Jinja2 templates.


Prev: Configuration (settings.ini) | Up: Home | Next: Custom Jinja2 filters (filters)