NAME

Text::MustacheTemplate::HTML - HTML escape for Text::MustacheTemplate

SYNOPSIS

use Text::MustacheTemplate;
use Text::MustacheTemplate::HTML;

# custom html escape
local $Text::MustacheTemplate::HTML::ESCAPE = sub { ... };

my @tokens = Text::MustacheTemplate->parse('* {{variable}}');

DESCRIPTION

Text::MustacheTemplate::HTML is a HTML escape for Mustache tempalte.

This is low-level interface for Text::MustacheTemplate. The APIs may be change without notice.

EXPORTS

escape_html

By default, it is the escape_html function of HTML::Escape itself. When $Text::MustacheTemplate::HTML::ESCAPE is overwritten, call that instead of HTML::Escape.

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura <karupa@cpan.org>