[stringtemplate-interest] String manipulations

Oliver Flege o.flege at market-maker.de
Fri Sep 22 01:39:50 PDT 2006


Hi,

John Snyders wrote:
> 
> I had the idea that I could use a template to format strings rather than
> create a wrapper around Strings.
> I would create a template and add it to a group the template would
> simply expand its argument.
> Registering a renderer with just this template should cause strings to
> be uppercased.
...
> Does anyone know why what I am doning isn't working? I'm using version 3.0.

I had the same idea some time ago:
http://www.antlr.org:8080/pipermail/stringtemplate-interest/2006-July/000512.html

In ST 3.0, your example is not working due to the same reason I mentioned in my posting:
The attribute renderers are not copied when a template is duplicated to be used in an evaluation
-- and no, I don't have any idea why this is not done as I never got any response.

Although ST is a great templating language/engine, imho it also suffers from the
lack of a real open source infrastructure: having just one developer for each language variant
(at least it seems to be that way), no online source code repository with version control,
no issue tracking system, etc.

The only way I found to deal with ST's deficiencies was to grab the source code,
put it into our company's code repository, and modify it according to our needs.

BTW: The source code is really easy to understand, so there is no reason not to modify it :)

 Oliver









More information about the stringtemplate-interest mailing list