[stringtemplate-interest] Output formatting issue
Terence Parr
parrt at cs.usfca.edu
Mon May 30 11:39:31 PDT 2005
On May 25, 2005, at 10:08 PM, jobapply wrote:
>
> Truncate operator is very helpful and it is widely used /with other
> template
> engines/.
> The actual idea of variable modifiers is not new, e.g you can find
> truncate
> at
> http://smarty.php.net/manual/en/language.modifier.truncate.php
>
> I mean it is helpful in web-templating, not in code generation ;))
>
> When designer decides to output something in "short" format - he
> should
> choose the number:40,60 ?
> It depends..
>
> I suggest implementing general modifiers as wrappers that will be
> attached
> at compile-time (StringTemplate compile into something/no ?)
>
I agree that truncate operators are useful...I'll add to the list to
think about. StringTemplate doesn't generate code, it's interpreted. :)
Terence
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the stringtemplate-interest
mailing list