Consider the following example:
<["foo", "", "bar"]; separator=",">
This gives the result:
foo,,bar
But I need:
foo,bar
Is there any way to filter out empty string values before formating with separator in ST4?
(In real code the values come from another template, which has <if>
condition and returns empty result for undesired data from model, and I don't whant to move the condition out of that template to keep templates incapsulated/isolated.)
I've found the workaround with two auxilary things. But it is so creepy...
This gives: