[stringtemplate-interest] StringTemplate Literals
Terence Parr
parrt at cs.usfca.edu
Sat Feb 28 17:37:52 PST 2009
On Feb 27, 2009, at 1:45 PM, H.E. Sum wrote:
>
> Yes, that does work, but quotes get interpreted. I'm using templates
> for my custom web framework and a lot of javascript libraries use $
> as a global variable so my inline javascript gets mangled.
>
> I decided to take the plunge into the stringtemplate source and
> added a VERBATIM token type to the DefaultTemplateLexer. (Just
> copied the mCOMMENT action and made it return the token instead of
> skipping). So now I can write $@ Output text with $ and "strings" @$
> in my templates. Thanks for creating this tool and making the source
> available for us to hack.
>
mypleasure. cool hack :)
Ter
More information about the stringtemplate-interest
mailing list