[stringtemplate-interest] native (java) templates
Anton Tagunov
anton.tagunov at umail.ru
Thu Jun 8 02:03:06 PDT 2006
Guys, not a committer, still..
Anton Tagunov> link(href) ::= "<a href='$href.url()$'>$href.html()</a>"
Andrew Goodnough> In your example you set the "href" parameter to your
Andrew Goodnough> Href bean, which has methods getUrl() and getHtml() which return an encoded string.
Sure. But we need dozen string .html() encoded.
Terence Parr> We could use a <fill()> built-in function that would fill until the end of line.
Nice. But desperate to forsee every need like this.
atagunov> we've got a functional language.
atagunov> we need to hook Java functions
atagunov> side effects would be forbidden.
Terence Parr> "impossible" is better than "forbidden"
Granted. But XYZ() methods are already "possible".
Why not go for java transformation functions?
Regards, Anton Tagunov
More information about the stringtemplate-interest
mailing list