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

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

Issue 29628724: Issue 5521 - Restructure CMS documentation to make it easier to use and extend (Closed) Base URL: https://hg.adblockplus.org/cms
Left Patch Set: Created Dec. 4, 2017, 9:59 a.m.
Right Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 # Custom filters #
2
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.
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
7 filter is invoked. For more information on Jinja2 filters see
8 [official documentation](http://jinja.pocoo.org/docs/dev/api/#writing-filters).
LEFTRIGHT

Powered by Google App Engine
This is Rietveld