[stringtemplate-interest] Call static methods from template

Terence Parr parrt at cs.usfca.edu
Mon Jul 7 12:44:31 PDT 2008


Hi. Nope.Cannot call general code from a template without turning the  
template into general code.
Ter
On Jul 7, 2008, at 6:05 AM, Maxim Karavaev wrote:

> Hello!
>
> I'm new for String Template Engine.
>
> I just didn't find answer in docs for my simple question: are there
> any ways to call static methods/properties from templates.
> For example like this:
>
> ------------------------
> Hello, $name$!
>
> Today is $System.DateTime.Now.ToLongDateString()$
>
> Bye!
> ------------------------
>
>
> Tanks,
>
> Max Karavaev
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list