NAME
Template::Plugin::YAML::Encode - Encode supported YAML
SYNOPSIS
use Template;
my $tt = Template->new({
ENCODING => 'utf8',
});
[% USE YAML = YAML.Encode %]
[% YAML.dump(variable) %]
[% YAML.dump_html(variable) %]
[% value = YAML.undump(yaml_string) %]
[% YAML.dumpfile(filename, variable) %]
[% value = YAML.undumpfile(filename) %]
DESCRIPTION
Template::Plugin::YAML::Encode is Template::Plugin::YAML-compatible interface.
[% USE YAML = YAML.Encode %]
Default encoding utf-8. To change the encoding argument should give.
[% USE YAML = YAML.Encode('euc-jp') %]
METHODS
- dump( @variables )
- dump_html( @variables )
- undump( $string )
- dumpfile( $file, @variables )
- undumpfile( $file )
AUTHOR
Yuji Shimada <xaicron {at} gmail.com>
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.