diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-08 10:25:42 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-08 10:25:42 +0200 |
| commit | 06ea10e1f19ec311f4f6c71d5446c12e92807497 (patch) | |
| tree | e3a61b76d588bbc958fe30cae881de3e58c106fc /docs | |
| parent | f269f305444f3c972e74755e9adff5ef575401d5 (diff) | |
Fixed #18125 -- Explained caveat with filters
Thanks ebrelsford AT gmail.com and oinopion.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/templates.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index e88a7b70f0..2fa6643975 100644 --- a/docs/topics/templates.txt +++ b/docs/topics/templates.txt @@ -226,6 +226,10 @@ tags: Athlete: {{ athlete_list.0.name }} {% endif %} + While the above example works, be aware that most template filters return + strings, so mathematical comparisons using filters will generally not work + as you expect. :tfilter:`length` is an exception. + :ttag:`block` and :ttag:`extends` Set up `template inheritance`_ (see below), a powerful way of cutting down on "boilerplate" in templates. |
