Thanks Josh,

This is most quick and easy method.

Chakkit


[EMAIL PROTECTED] wrote:
> I'm planning to develop a system that public users can fully change the 
> template by their own.
> 
> I'm concerning about security, how can I turn off some plugins or load 
> only what I need?

use Template;
use Template::Plugins;

$Template::Plugins::STD_PLUGINS = {};
$Template::Plugins::PLUGIN_BASE = '';

Then just define your plugins via the PLUGINS config option.

my $template_config = {
  PLUGINS => {
    'math' => 'Template::Plugin::Math',
  }
};
my $template = Template->new($template_config);

-- Josh


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

Reply via email to