I have a list of string in java code:
List<String> keywords = new ArrayList<String>();
keywords.add("Apple");
keywords.add("Banana");
and I would like to display the keywords using Freemarker:
Apple, Banana
How to do that?
PS:
I read through the manual and found some articles suggesting using <#list>, but the output is:
Apple
Banana
FreeMarker preserves your spaces (and EOL) but does not add any by itself. So, just put everything in the same line: