Comma Separated Lists in Velocity
July 11, 2013
I was creating a create table
statement in a Velocity template. I wanted to put a comma on each column of the table apart from the last. With template languages like Django's, you can get access to forloop.last
and test for this with an if. Velocity makes it more challenging. …