On Tue, Apr 10, 2007 at 11:25:33AM +0100, Dave Howorth wrote:
> Bill Moseley wrote:
> > I have a number of macros that I keep in a macros.tt file and they are
> > included when I pre-process my config.tt file.
> > 
> > I'd like to have the macros available to a number of applications, so
> > what would be the recommended way to share a single macros file?
> > Rewrite as a plugin?
> 
> Being lazy, I'd probably just put it in its own directory and add that
> directory to the INCLUDE_PATH for each application.

And make sure the Provider is updated to do negative caching.

Macros are pre-compiled, but the stash has to be populated each
request.  Probably falls into the realm of premature optimization, but
I wonder if plugins are more efficient.  Likely not, since the
plugin instance needs to be created, too.

-- 
Bill Moseley
[EMAIL PROTECTED]


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to