Include

Created on Jan. 24, 2013, 1:14 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:24 p.m.

{% include %} enables to re-use common view code in templates. For instance, to display a list of books:

{% include "book_list.html" with books="auth.book_set.all %}
dry.jpg

Tags: template, coding, django
Categories: Tutorial, reST
Parent: Web Framework

Update entry (Admin) | See changes

Comment on This Data Unit