[stringtemplate-interest] :html(), :url(), applying Java function from template

Anton Tagunov anton.tagunov at umail.ru
Wed Jun 7 00:35:11 PDT 2006


Hello gentlemen, makes sense?

    link(href) ::= "<a href='$href:url()$'>$href:html()</a>"

1) is it possible to write html() and url() encoding functions in pure ST at all?
2) would be grand to write html() and url() in Java and hook into ST!

     C'on, we've already got a functional language.
     Now we need to hook Java functions into it.
     Granted, side effects would be forbidden.

Anton Tagunov

P.S. Example adapted from http://etl.i-want-a-pony.com/doc/etl.html





More information about the stringtemplate-interest mailing list