Template::Provider::Encode::Guess - Encode templates by guessing for Template Toolkit


Template-Provider-Encode documentation  | view source Contained in the Template-Provider-Encode distribution.

Index


NAME

Top

Template::Provider::Encode::Guess - Encode templates by guessing for Template Toolkit

SYNOPSIS

Top

  use Template::Provider::Encode::Guess qw/shiftjis euc-jp/;
  use Template;
  my $tt = Template->new(
      LOAD_TEMPLATES => [Template::Provider::Encode->new({oe => 'utf-8'})]
  );
  my $author = "\xe3\x81\x9b\xe3\x81\x8d\xe3\x82\x80\xe3\x82\x89";
  $tt->process('t/tmpl/SJIS.tt2', {author => $author});

DESCRIPTION

Top

TWB

SEE ALSO

Top

Encode, Encode::Guess, Template::Provider

AUTHOR

Top

Masayoshi Sekimura, <sekimura at gmail dot com>

COPYRIGHT AND LICENSE

Top


Template-Provider-Encode documentation  | view source Contained in the Template-Provider-Encode distribution.