I need to create a comma-separated list of items: $subjects : {sub | $sub.Name$}separator=", "$ This does not seem to work. What is the right way to use a separator? Is there an alternative way to create a comma-separated list of items?
Asked
Active
Viewed 1,892 times
1 Answers
4
The format is:
<multi-valued-attribute; separator=expr>
In your case it would be:
subjects: $subjects:{sub | $sub.name$}; separator=", "$
Which would render:
subjects: Maths, English
You can find out more from the StringTemplate cheat sheet

Andy Stabler
- 1,309
- 1
- 15
- 19