[Templates] disabling plugins

Josh Rosenbaum josh@infogears.com
Fri, 30 Jun 2006 11:21:04 -0600


Hi Andrew,

We got this functionality in 2.15. See here:
http://tt2.org/pipermail/templates/2006-January/008282.html

Basically this will do:
   $Template::Plugins::STD_PLUGINS = { };
   $Template::Plugins::PLUGIN_BASE = '';

Then if you need to use plugins, just put them in the PLUGINS configuration option.

-- Josh

Andrew Strader wrote:
> I found some discussion in the archives about disabling plugins:
> 
> http://template-toolkit.org/pipermail/templates/2001-February/000623.html
> 
> I wonder if this is the state of the art today for TT? Is there a better 
> way to disable plugins? The ideal situation would be if plugins could be 
> disabled by default, but explicitly enabled.