[stringtemplate-interest] [antlr-interest] StringTemplate functions like capitalize()?
Terence Parr
parrt at cs.usfca.edu
Sun Mar 18 14:02:47 PDT 2007
Hi, That is against the "rules". Can't call generate code from a view.
You need a renderer or the like.
ter
On Mar 18, 2007, at 4:16 AM, Joan Pujol wrote:
> Hello,
>
> It's possible to call a external function with stringtemplate?
> I've the problem that I'm generating Java code and for Beans
> convention I need to capitalize.
>
> Something like:
>
> basictype(name,type)::= <<
> private final <typeMap.(type)> name= new <typeMap.(type)>();
>
> public <typeMap.(type)> get<name>() { capitalization wanted
> in get<name>()
> return <name>;
> }
>
> >>
>
> --
> Joan Jesús Pujol Espinar
> http://www.joanpujol.cat
> http://lujop.deviantart.com
More information about the stringtemplate-interest
mailing list