NAME
OpenDocument::Template::Util - utility function for OpenDocument::Template
VERSION
version 0.002
METHODS
update_template( $ot, %params )
update template.
- $ot
-
OpenDocument::Template object
- prefix
-
match rule to convert for Template Toolkit variable
- output_dir
-
directory for generated(updated) file
- force
-
force overwrite if file is already existed
Example:
my $ot = OpenDocument::Template->new(
config => 'addressbook.yml',
template_dir => 'template',
src => 'addressbook.odt',
dest => 'addressbook-template.odt',
);
OpenDocument::Template::Util->update_template(
$ot,
prefix => qr/(meta|person)\./,
) or "failed to update template\n";
AUTHOR
Keedi Kim - 김도형 <keedi@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Keedi Kim.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.