On Tue, Oct 30, 2001 at 09:03:52PM -0600, Mike Eggleston wrote: > I have a need to use Digest::MD5 (actually md5_hex) in my code. > How do I pull in the md5_hext function into my template inside > the [% ... %] tags?
If you've got EVAL_PERL set then you can do something like this:
[% MACRO md5_hex(data) PERL %]
require Digest::MD5;
print Digest::md5_hex($stash->get('data'));
[% END %]
and then:
[% md5_hex(data) %]
Otherwise, you'd need to write a simple plugin to do the same kind of
thing.
HTH
A
