[dancer-users] Using TT filters from Perl

Jon Jensen jon at endpoint.com
Mon Mar 25 09:25:31 GMT 2013


Hi, dancers.

I'm wondering what the best way is to use Template Toolkit filters from 
Perl, such as my route subs.

I got to it this way through TT directly:

my ($filter_html) = Template::Filters->new->fetch('html');

but wonder if there's a better way through the Dancer plugin so I don't 
have to instantiate the Template::Filters object separately.

TIA,
Jon


-- 
Jon Jensen
End Point Corporation
http://www.endpoint.com/


More information about the dancer-users mailing list