[stringtemplate-interest] How to write a helper template/macro for common stuff in a template (i.e. model and controller independent)
Barrie Treloar
baerrach at gmail.com
Fri Jul 17 01:29:59 PDT 2009
> For my case, what I think I want is something like:
> <[1..6]: {RETYPE [<it>] 0}>
> where [1..6] creates a list on the fly for me of the values [1,2,3,4,5,6]
Thanks for the suggestions, this prompted me to try
<[1,2,3,4,5,6]: {RETYPE [<it>] 0<\n>}>
which does what I want but not entirely sure its any better than
pasting in the lines 6 times.
More information about the stringtemplate-interest
mailing list