﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8088	"Template system improvement: ""cat"" filter, ""include"" tag with filters"	David Avsajanishvili	nobody	"There are two suggestions:

1. Since we have '''add''' filter, that adds a value to integer variable, why not implement '''cat''' filter, which will concatenate strings? I think, it would be useful for many developers!

2. '''include''' tag has two options: template name could be specified either as a quoted string, or as a variable. But for all that template filters cannot be used. It would be nice to allow developers to specify template name more flexibly, for example:

{{{
   {% include var_name|lower %}
}}}
   
   or even like this (page5_ka.txt):

{{{
   {% include ""page""|cat:pageid|cat:LANGUAGE_CODE|cat:""_.txt"" %}
}}}

The diffs attached to the ticket do these things. At the same time, new revision of template system will be fully backwards-compatible with previous.
An only exception is - using quoted strings with quotes inside, like this:

{{{
    {% include ""a""mysterious""template.txt"" %}
}}}

Currently, template system accepts this string as a template name with doublequotes inside, while modified - won't. But, IMHO, nobody will name templates this case.
"	New feature	closed	Template system	dev	Normal	wontfix	cat concatenate include filter tag		Design decision needed	1	0	0	0	0	0
