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

Delta Between Two Patch Sets: docs/content/filters.md

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Left Patch Set: Created Jan. 10, 2019, 12:01 a.m.
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « docs/api/variables.md ('k') | docs/content/globals.md » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Custom filters # 1 # Custom filters #
2 2
3 The `filters` directory can define custom Jinja2 filters which will be available 3 The `filters` directory can define custom Jinja2 filters which will be available
4 in all Jinja2 templates. The file name defines the filter name, e.g. 4 in all Jinja2 templates. The file name defines the filter name, e.g.
5 `filters/myfilter.py` will define a filter named `myfilter`. This file should 5 `filters/myfilter.py` will define a filter named `myfilter`. This file should
6 also contain a function called `myfilter`, this one will be called when the 6 also contain a function called `myfilter`, this one will be called when the
7 filter is invoked. For more information on Jinja2 filters see 7 filter is invoked. For more information on Jinja2 filters see
8 [official documentation](http://jinja.pocoo.org/docs/dev/api/#writing-filters). 8 [official documentation](http://jinja.pocoo.org/docs/dev/api/#writing-filters).
9 9
10 -----
10 Prev: [Custom Jinja2 global functions and variables (`globals`)](globals.md) | U p: [Home](../../README.md) | Next: [Localization files (`locales`)](locales.md) 11 Prev: [Custom Jinja2 global functions and variables (`globals`)](globals.md) | U p: [Home](../../README.md) | Next: [Localization files (`locales`)](locales.md)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld