Template Tags & Filters

Created on Nov. 9, 2012, 6:54 a.m. by Hevok & updated by Hevok on May 2, 2013, 5:27 p.m.

The template tags add functionality into HTML templates. The occurrence is marked with enclosing Braces-Percentage {% %}. The build-in template tags should be bookmarked by each Designer. If you haven't do it right now. Now, for instance gives the current time:: {% now "Y" %}

Filters, are template tags applied on objects:: {{ object.publish_date|date:"Y" }}

template-tags-filters.jpg

Tags: html, designing
Categories: Tutorial
Parent: Web Framework

Update entry (Admin) | See changes

Comment on This Data Unit