HPCI::Template - This role gives the consumer a simple templating engine
Provides a method render_template_to_file that writes a target file, using a Text::Xslate template file to define the content.
template_search_paths - array of directory strings to search for template files
_template_renderer - (internal) A Text::Xslate instance.
render_template_to_file - generate a file from a template
Usage: $object->render_template_to_file( template_name => "file.template", output_file_path => "myfile.out", rendering_variables => { foo => "foo value", bar => [ qw(bar has a bunch of values ...) ], }, );
To install HPCI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HPCI
CPAN shell
perl -MCPAN -e shell install HPCI
For more information on module installation, please visit the detailed CPAN module installation guide.