[stringtemplate-interest] "x of n" integer expansion (or sequence expansion)

Stephen Kestle stephen at kestleenterprises.com
Sat Dec 12 04:13:02 PST 2009


Given 'n', how would I go about doing an 'x of n' template, where x =
1...n?  Perhaps a sequence expansion with "start=1,step=1,end=n".

This seems like a basic feature that I can't seem to find documentation
for...

Can someone elaborate?  (I've been trying to twist my head around this,
and the closest I came was to do a recursive template call, but then
realised I can't find documentation for arithmetic (x+1), and if(x>n) is
not supported)

Cheers

Stephen






More information about the stringtemplate-interest mailing list