-
-
07 Dec 2011 20:07:40 UTC
- Distribution: OpenDocument-Template
- Module version: 0.002
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (136 / 0 / 14)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (13.29KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Archive::Zip
- Config::Any
- Encode
- File::Path
- File::Slurp
- File::Spec::Functions
- File::pushd
- Getopt::Long::Descriptive
- Moose
- Moose::Role
- Moose::Util::TypeConstraints
- MooseX::SemiAffordanceAccessor
- MooseX::StrictConstructor
- Template
- XML::Tidy
- autodie
- namespace::autoclean
- strict
- utf8
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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.
Module Install Instructions
To install OpenDocument::Template, copy and paste the appropriate command in to your terminal.
cpanm OpenDocument::Template
perl -MCPAN -e shell install OpenDocument::Template
For more information on module installation, please visit the detailed CPAN module installation guide.