Dancer2-Plugin-UnicodeNormalize
view release on metacpan or search on metacpan
lib/Dancer2/Plugin/UnicodeNormalize.pm view on Meta::CPAN
Dancer2::Plugin::UnicodeNormalize normalizes all incoming parameters to a given
normalization form. This is achieved with a before hook, which should run
silently before processing each route. By default, we use Unicode Normalization
Form C - this is usually what you want. Other forms can be selected, see:
L</"CONFIGURATION">.
This plugin was inspired by L<Mojolicious::Plugin::UnicodeNormalize>. For
information on why Unicode Normalization is important, please see:
L<http://www.perl.com/pub/2012/05/perlunicookbook-unicode-normalization.html>
L<http://www.modernperlbooks.com/mt/2013/11/mojolicious-unicode-normalization-plugin-released.html>
=head1 CONFIGURATION
plugins:
UnicodeNormalize:
form: NFC
exclude:
- '^/(css|javascripts|images)'
The C<form> parameter is described in L<Unicode::Normalize>. Default is NFC.
( run in 0.233 second using v1.01-cache-2.11-cpan-f29a10751f0 )