Changes between Initial Version and Version 1 of Ticket #21367, comment 2
- Timestamp:
- Nov 2, 2013, 10:47:39 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21367, comment 2
initial v1 25 25 }}} 26 26 27 '''i.e. Generate a list from arbitrary context data''' 28 29 {{{ 30 {% with my_list=""|add:var1|add:sep|add:var2|add:sep|add:var3|split:sep %} 31 ... 32 {% endwith %} 33 34 It creates a list, called "my_list", from var1, var2, var3. 35 }}} 36 27 37 In general, I think the current built-in library lacks of support to content "manipulation/formatting". Often we already have the data we need in the context, but we can't format it according to our needs due to the lack of basic data-manipulation/formatting filters and templatetags. 28 38