[stringtemplate-interest] How best to do recursive hetero template calls?
Gerald Rosenberg
gerald at certiv.net
Sat Feb 20 18:20:43 PST 2010
On 2/20/2010 5:32 PM, Terence Parr wrote:
> On Feb 20, 2010, at 3:03 PM, Gerald Rosenberg wrote:
>
>
>> On 2/20/2010 11:43 AM, Terence Parr wrote:
>>
>> Seems I borked the explanation.
>>
>>> To me, it's not the job of ST to manage a list of your output templates.
>>>
>> To be clear, the enhancement is to allow a single template invocation to output multiple content fragments. A mark on a template will flag when to switch to a new content buffer and the end of that template defines the switch back. The *only* management ST does is to blindly push and pop output content buffers based on some static mark.
>>
> Hmm...not sure why ST should do splitting. user should split on ST granularity. Also, what if "mark" isn't just "do it now"? What if you need a predicate? ;)
>
Yep, you got me ;)
More information about the stringtemplate-interest
mailing list