Opened 16 years ago

Closed 16 years ago

#6166 closed (fixed)

Templates autoescape / inheritance example broken

Reported by: Purdea Andrei Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords: templates autoescape
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

On the following page: http://www.djangoproject.com/documentation/templates/#for-template-blocks

Where the issue of combining autoescape and inheritence is discussed the example is useless.

Attachments (1)

6166.docs.templates.diff (1015 bytes ) - added by Pete Crosier 16 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Chris Beaven, 16 years ago

Needs documentation: set
Triage Stage: UnreviewedAccepted

Agreed. Very useless.

Needs to be changed to use context variables to show that they don't get escaped.

comment:2 by Gary Wilson, 16 years ago

And the block tags in base.html are missing endblocks.

comment:3 by Pete Crosier, 16 years ago

Has patch: set
Keywords: templates autoescape added
Needs documentation: unset
Summary: templates - autoescape - inheritanceTemplates autoescape / inheritance example broken

by Pete Crosier, 16 years ago

Attachment: 6166.docs.templates.diff added

comment:4 by Pete Crosier, 16 years ago

Patch to get the ball-rolling / so this doesn't stay broken and confuse people.

comment:5 by James Bennett, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in [7299].

Note: See TracTickets for help on using tickets.
Back to Top