Django for Designers: Difference between revisions

→‎Django templates 101: Plural sentences get plural verbs. Also everyone loves correct link syntax.
imported>Paulproteus
(→‎Django templates 101: More tab=>space fixes)
imported>Paulproteus
(→‎Django templates 101: Plural sentences get plural verbs. Also everyone loves correct link syntax.)
Line 560:
The {% extends %} tag tells the template renderer which template this template file inherits from. Each block tag then specifies the content that ought to go in each block.
 
There are lots of built-in template tags and filters; we'll see a few more later. The full docs on them [lives here https://docs.djangoproject.com/en/dev/ref/templates/builtins/ live here].
 
As a rule, in Django, things in {% %} control the "logic" of the template, while things in {⁠{ }} actually stick data into the template in particular places.
Anonymous user