1 package HTML::String::TT;
6 use HTML::String::TT::Directive;
15 PARSER => Template::Parser->new(
16 FACTORY => 'HTML::String::TT::Directive'
18 STASH => Template::Stash->new,
19 FILTERS => { no_escape => sub {
20 $_[0]->$_isa('HTML::String::Value')
21 ? HTML::String::Value->new(map $_->[0], @{$_[0]->{parts}})
22 : HTML::String::Value->new($_)
24 (ref($_[0]) eq 'HASH' ? %{$_[0]} : @_)