> Perrin Harkins wrote:
> > On Tue, 2004-11-30 at 11:52 +0000, Simon Flack wrote:
[snip]
> >>So we
> >>could give each view object its own Template object (rather than sharing
> >>them for all Maypole apps).
> >
> >
> > If you do that, you may want to share one Template::Provider object
> > between them so that the cache will be shared.
I've modified Perrin's original patch to use a shared Template::Provider
object and a private Template object for setting application-specific things
like INTERPOLATE, DEFAULT, ERROR, PLUGINS, etc. Note: you'll only be able to
set those options *once* when your maypole app is initialised.
BTW, this isn't a complete patch. Some changes are necessary to Maypole.pm and
Maypole::Config.
I'm not feeling 100% about the way the options are specified, or the fact that
you can only set some of those options on init. (which shouldn't happen very
often in a mod_perl environment)
Does anyone have any thoughts/comments on this?
--simonflk
_______________________________________________
maypole-dev mailing list
maypole-dev at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole-dev
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT