darren chamberlain wrote:
* Simon Wilcox <[EMAIL PROTECTED]> [2002-11-04 09:38]:I don't see any problem with enabling it when using ttree, but it won't help since Image::Size doesn't have an OO interface.
Is it possible to add a function like this at runtime or should I just
bite the bullet and write a plugin ?
Nothing springs to mind that would help you -- a user can't load arbitrary Perl modules into a Template unless USE_PERL is set in the Template constructor (security feature).
Of course since you're already using Perl blocks for your other setup work, you could just do this:
[ % PERL %]
use Image::Size ();
$stash->set(imgsize => \&Image::Size::html_imgsize);
[% END %]
- Perrin
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates
