Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: docs/content/globals.md

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Address comments on PS1 Created Jan. 14, 2019, 3:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/content/filters.md ('k') | docs/content/includes.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Custom functions and variables # 1 # Custom functions and variables #
2 2
3 The `globals` directory can define custom Jinja2 globals which will be available 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 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 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 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. 7 called `myfunction` that will become available to all Jinja2 templates.
8 8
9 -----
9 Prev: [Configuration (`settings.ini`)](settings.md) | Up: [Home](../../README.md ) | Next: [Custom Jinja2 filters (`filters`)](filters.md) 10 Prev: [Configuration (`settings.ini`)](settings.md) | Up: [Home](../../README.md ) | Next: [Custom Jinja2 filters (`filters`)](filters.md)
OLDNEW
« no previous file with comments | « docs/content/filters.md ('k') | docs/content/includes.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld