[Templates] Sharing data between Parser and Template

Eric Cholet cholet@logilune.com
Mon, 28 Aug 2000 17:03:26 +0200


What's the best way to share information between a template and
a parser object? I'm using a subclassed parser to do some
pre-processing on the template. I need to provide methods to
the caller to manipulate this pre-processing. But the caller only
sees the (subclassed) Template object, so I've inserted a reference
to the parser object in the template object. Is there a better way?

Thanks,
--
Eric Cholet