Skip to content
Browse files

Fixed #18125 -- Explained caveat with filters

Thanks ebrelsford AT and oinopion.
  • Loading branch information...
1 parent f269f30 commit 06ea10e1f19ec311f4f6c71d5446c12e92807497 @aaugustin aaugustin committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/topics/templates.txt
4 docs/topics/templates.txt
@@ -226,6 +226,10 @@ tags:
Athlete: {{ }}
{% 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.

0 comments on commit 06ea10e

Please sign in to comment.
Something went wrong with that request. Please try again.