From: Chris W. <ch...@cw...> - 2004-03-26 17:14:16
|
On Mar 25, 2004, at 2:22 PM, forehead wrote: > ... > here is the question: since we now support "x::y" like name for source > name to process > ( which inside the scence, TT2::Provider do fetch and load the stuff > from template directories > or cache which could be more effective ), why here ( in program not in > template file) load it > from outside ? why not just give the $source as the format 'x::y' > ,just like what we do in > template file inside? This is a good point. I created: OpenInteract2::ContentGenerator::TemplateSource->load_source() so that HTML::Template, Text::Template and other processing engines could take advantage of the 'package::name' template naming syntax. But we're kind of skating around the caching provided by TT here, aren't we? I'll look into it. thanks! Chris -- Chris Winters Creating enterprise-capable snack systems since 1988 |