Open ccomparini opened 2 months ago
Make it so you can do (eg)
@join(", ", some_collection:item_in_collection) {@ @item_in_collection@ @}@
... or some such syntax. @for ... @ is nice and all but hard to generate stuff for languages which don't allow trailing commas etc.
@for ... @
Another useful case:
@join(" else ", some_collection:item_in_collection) {@ if(foo == @item_in_collection@) { do_something_with(foo); } @}@ .. so that it generates a towering if/else relatively neatly.
Make it so you can do (eg)
... or some such syntax.
@for ... @
is nice and all but hard to generate stuff for languages which don't allow trailing commas etc.Another useful case: