[stringtemplate-interest] AttributeRenderer for annonymous templates

Terence Parr parrt at cs.usfca.edu
Fri Mar 24 14:14:58 PST 2006


On Mar 24, 2006, at 10:12 AM, Galen Dunkleberger wrote:

> Hi,
>     I have a defined template in my template group that I register an
> attribute renderer with (registered just that template not the entire
> template group). I expected that if that template contains an  
> anonymous
> template  which renders an object of the that class type that it would
> use that renderer registered with the parent template. This doesn't  
> seem
> to be the case though unless I"m doing something wrong. Is there a way
> to ensure anonymous templates included in a template use the parent
> template's attribute renderers?

Hi.  Sounds like a bug.  I probably didn't properly follow the  
enclosing chain.  I simply went "in template?  no, check group.  not  
in group?  check supergropu".  Forgot enclosing chain.  Wait, it  
should *only* do that for anonymous templates, right?  Other  
templates can have their own renderers I think.

Ter


More information about the stringtemplate-interest mailing list