Opened 7 years ago

Last modified 6 years ago

#29433 closed New feature

templatefilter "make_list" should receive a optional split variable — at Initial Version

Reported by: Maxim Danilov Owned by: nobody
Component: Template system Version:
Severity: Normal Keywords: templatefilter,
Cc: Jeff Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

for use in template, for example:
not only
{% with my_list='i#am#stupid#user'|make_list %}
# my_list=['i','#','a','m','#','s','t','u','p','i','d','#','u','s','e','r']
......

it should to work too:

{% with my_list='i#am#stupid#user'|make_list:'#' %}
# my_list=['i','am','stupid','user']
......

Change History (0)

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