Skip to content
Myr

[svn] added negation to designer docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 9ad6ee8 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/src/designerdoc.txt+6 added
249 unmodified lines
250 ``|`` apply a filter on the value. See the section about251 filters for more information.252 ``and`` return true if the left and the right operand is true.253 ``or`` return true if the left or the right operand is true.254 ``not`` negate an statement *255 ``()`` call a callable. ``{{ user.get_username() }}``. Inside of the256 parenthesis you can use variables: ``{{ user.get('username') }}``.257 ======= ===================================================================258259Note that there is no support for any bit operation or something similar.260261* special note regarding `not`. The `is` and `in` operators support negation262 using an infix notation too: ``foo is not bar`` and ``foo not in bar``263 instead of ``not foo is bar`` and ``not foo in bar``. All other expressions264 require a prefix notation: ``not (foo and bar)``.265266Macros267======268269If you want to use a partial template on more than one place you might want to
198 unmodified lines