Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 # Custom functions and variables # | |
2 | |
3 The `globals` directory can define custom Jinja2 globals which will be available | |
4 in all Jinja2 templates. Typically, this is used for custom functions. The file | |
5 name should match the name of the function or variable to be defined, and export | |
6 a variable with that name. E.g. `globals/myfunction.py` can define a function | |
7 called `myfunction` that will become available to all Jinja2 templates. | |
OLD | NEW |