Changes between Initial Version and Version 1 of Ticket #21367, comment 2


Ignore:
Timestamp:
11/02/2013 10:47:39 AM (16 months ago)
Author:
zuck
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21367, comment 2

    initial v1  
    2525}}}
    2626
     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
     34It creates a list, called "my_list", from var1, var2, var3.
     35}}}
     36
    2737In 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.
    2838
Back to Top