:replace_last,
'smart' => \&App::Dapper::Filters::smart,
'json' => \&App::Dapper::Filters::json,
},
#ERROR => 'alloy_errors.html',
EVAL_PERL => $ENV{EV
'replace_last' => \&replace_last,
# 'smart' => \&smart,
# 'json' => \&json,
# },
# });
#}
=head2 xml_escape
Liquid filter to escape strings into formats t
s/([^-])---([^-])/$1\—$2/g;
return $input;
}
=head2 json
Turn string into json-formatted string.
=cut
use JSON;
sub json {
my $input = shift;
my $flags = {
allow_bless
ed => 1,
allow_barekey => 1,
allow_nonref => 1,
utf8 => 1,
pretty => 1
};
return to_json($input, $flags);
}
1;