[stringtemplate-interest] Managing "type specific" subtemplates
Terence Parr
parrt at cs.usfca.edu
Mon Dec 8 10:58:11 PST 2008
On Dec 1, 2008, at 12:45 PM, Nathan Ward wrote:
> Any suggestions for how to handle case where a different subtemplate
> should be used depending on the type of a given model object? Is it
> reasonable to use a Map to determine the subtemplate to use for this
> type of situation?
Sure. or even just set an attribute to the template name and then use
(name)().
Ter
More information about the stringtemplate-interest
mailing list