| 1 | == Template Tags == |
| 2 | |
| 3 | === Inheritance and Inclusion === |
| 4 | |
| 5 | * {% extends "base.html "%} |
| 6 | * {% block content %} ... {% endblock %} |
| 7 | * {% include "foo/bar.html" %} |
| 8 | * {% ssi /home/html/ljworld.com/includes/right_generic.html %} |
| 9 | |
| 10 | === Filters and Tags === |
| 11 | |
| 12 | * {% load <tag_or_filter_lib> %} |
| 13 | * {% filter <filter>[|<filter>...] %} |
| 14 | |
| 15 | === Control === |
| 16 | |
| 17 | * {% for o in some_list %} ... {% endfor %} |
| 18 | ** {% ifchanged %} (Content to check status of) {% endifchanged %} |
| 19 | * {% if <var> %} ... {% endif %} |
| 20 | * {% if[not]equal user.id comment.user_id %} ... [{% else %}] ... {% endif[not]equal %} |
| 21 | * {% cycle row1,row2 %} |
| 22 | * {% cycle row1,row2 as rowcolors %} |
| 23 | ** {% cycle rowcolors %} |
| 24 | * {% firstof var1 var2 var3 %} |
| 25 | * {% regroup people by gender as grouped %} ... {% for group in grouped %} {{ group.grouper }} ... |
| 26 | |
| 27 | === Others === |
| 28 | |
| 29 | * {% templatetag (openblock|closeblock|openvariable|closevariable|openbrace|closebrace) %} |
| 30 | * {% widthratio this_value max_value 100 %} |
| 31 | * It is {% now "jS F Y H:i" %} |
| 32 | * {% spaceless %} ... {% endspaceless %} |