On 10/4/05, Brett Sanger <[EMAIL PROTECTED]> wrote:
> I'm tinkering with having a TT singleton under mod_perl, and tweaking
> INCLUDE_PATH, and my knowledge is insufficient to tell me if this will
> work.
>
> Background:
>
> Most of the apps I develop are of a "one base app module, many instance
> script cgis to give parameters, and many template trees" variety (using
> CGI::App).  For example, I might write a "contact list" application, and
> different divisions and units will use it.  The designer sets the proper
> parameters in the cgi, and points it to the customized set of templates.

If you are using CGI::Application, then look at using the TT plugin
for CGI::Application (CGI::Application::Plugin::TT). which will handle
the singleton stuff for you, and gives you an easy method for altering
the include path on a per request basis.  There are some examples in
the docs, or ask on the CGIApp list for help on using the plugin (or
here if people don't mind, since it is using Template Toolkit).

For the other stuff you mention, follow what Perrin has already told you...

Cheers,

Cees

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

Reply via email to