Changes between Version 4 and Version 5 of AutoEscape alternative
- Timestamp:
- Nov 14, 2006, 7:06:08 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AutoEscape alternative
v4 v5 1 = AutoEscaping Alternative = 2 1 3 The current AutoEscaping proposal has met arguments on several fronts: 2 4 … … 7 9 This alternative proposal attempts to provide a concise solution that answers these arguments: 8 10 9 = Suggested Solution=11 == Suggested Solution == 10 12 11 13 Escaping only matters for !VariableNodes (`{{ object.name }}` tags). A filter is usually applied to each of these nodes. … … 30 32 Any filter can be used with the `finalfilter` tag. 31 33 32 = Example=34 == Example == 33 35 34 36 `base.html`: 35 37 36 38 {{{ 39 #!xml 37 40 {% load filtertags %} 38 41 {% finalfilter escape %} … … 52 55 `index.html`: 53 56 {{{ 57 #!xml 54 58 {% extends "base.htm" %} 55 59 … … 60 64 }}} 61 65 62 `edit.html` 66 `edit.html`: 63 67 {{{ 68 #!xml 64 69 {% extends "base.html" %} 65 70 … … 74 79 }}} 75 80 76 = Try It Out=81 == Try It Out == 77 82 78 83 Basic instructions for using the file below: