1 package Template::Plugin::encoding;
2 use base qw( Template::Plugin );
18 Tempate::Plugin::encoding - Template plugin to specify encoding
22 [% USE encoding 'euc-jp' -%]
23 <?xml version="1.0" encoding="[% encoding %]"?>
27 Template::Plugin::encoding is a Template plugin to declare the
28 encoding of template files. This plugin doesn't actually do anything
29 but Template::Provider::Encoding scans the usage of this module to
30 find the encoding of templates. As a bonus, you can use C<encoding>
31 variable in the template to specify file encoding, which might be
32 useful for XML or HTML meta tag.
36 Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>
38 This library is free software; you can redistribute it and/or modify
39 it under the same terms as Perl itself.
43 L<Template::Provider::Encoding>