[stringtemplate-interest] I'm missing how templates are named
Terence Parr
parrt at cs.usfca.edu
Wed Jun 24 18:59:04 PDT 2009
On Jun 24, 2009, at 6:55 PM, Thomas Gagne wrote:
> I have a template I’ve used, "$row:{k| <tr><td>$k$</td></tr>\n}$"
> successfully, and would like to factor it into a named template.. or
> component.. or whatever.
>
> What the documentation seems to skip is how to turn that template
> into something I can use as “$row:mytemplate()$”. That seems to be
> the syntax used in the MVC paper and other documentation.
Put
<tr><td>$k$</td></tr>
into a file call mytemplate.st and then do $row:mytemplate()$
Ter
More information about the stringtemplate-interest
mailing list