Changes between Version 1 and Version 2 of Ticket #20434, comment 6


Ignore:
Timestamp:
Jun 5, 2013, 5:26:32 PM (11 years ago)
Author:
jonathanslenders

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20434, comment 6

    v1 v2  
    6464
    6565
     66The output of the management command looks like the following. The grammar is simply extracted using introspection on the registered TemplateTags. As a parameter to the management command, you can pass a library name.
     67{{{
     68$ ./manage.py templatetags
     69autoescape  ::= autoescape endautoescape
     70block       ::= block endblock
     71comment     ::= comment endcomment
     72csrf_token  ::= csrf_token
     73cycle       ::= cycle
     74debug       ::= debug
     75extends     ::= extends
     76filter      ::= filter endfilter
     77firstof     ::= firstof
     78for         ::= for empty? endfor
     79if          ::= if elif* else? endif
     80ifchanged   ::= ifchanged else? endifchanged
     81ifequal     ::= ifequal else? endifequal
     82ifnotequal  ::= ifnotequal else? endifnotequal
     83include     ::= include
     84load        ::= load
     85now         ::= now
     86regroup     ::= regroup
     87spaceless   ::= spaceless endspaceless
     88ssi         ::= ssi
     89templatetag ::= templatetag
     90url         ::= url
     91verbatim    ::= verbatim endverbatim
     92widthratio  ::= widthratio
     93with        ::= with endwith
     94}}}
     95
    6696Cheers!
    6797Jonathan
Back to Top