Changes between Initial Version and Version 1 of Ticket #29433


Ignore:
Timestamp:
May 22, 2018, 3:25:51 PM (7 years ago)
Author:
Tim Graham
Comment:

I'm on the fence. While I see the value, I'm not sure that promoting more logic in templates in a good idea. It's fairly easy to write a custom filter (I would call it "split") which I think would be more readable.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29433 – Description

    initial v1  
    11for use in template, for example:
    22not only
     3{{{
    34{% with my_list='i#am#stupid#user'|make_list %}
    45# my_list=['i','#','a','m','#','s','t','u','p','i','d','#','u','s','e','r']
     6}}}
    57......
    68
    79it should to work too:
    8 
     10{{{
    911{% with my_list='i#am#stupid#user'|make_list:'#' %}
    1012# my_list=['i','am','stupid','user']
     13}}}
    1114......
Back to Top