[stringtemplate-interest] sending static templates

Terence Parr parrt at cs.usfca.edu
Wed Jan 18 10:41:03 PST 2006


On Jan 18, 2006, at 10:32 AM, David Moshal wrote:

> anyone know how to load 'static' templates,
> ie: templates that have no attributes, or references to other  
> templates,
> and which are not validated.
>
> Reason: I want to send compressed javascript files, which contain $'s
> (and many unreadable ascii chars)

Can you use the AngleBracketTemplateLexer.class or is < also a  
problem.  This sounds more like a string data object not a template.   
The template is just "$data$" and you can fill will a string.  How  
many do you have?  If lots, use a map to pass in the data and then  
ask for "$stringmap.string1$" etc...

Ter


More information about the stringtemplate-interest mailing list