Spreadsheet::Template::Generator - create new templates from existing spreadsheets
version 0.05
use Spreadsheet::Template::Generator; my $generator = Spreadsheet::Template::Generator->new; open my $fh, '>:encoding(utf8)', 'out.json'; $fh->print($generator->generate($filename));
This module is used to create new templates from existing spreadsheets. You can then modify this output to be suitable to use as input for Spreadsheet::Template by, for instance, adding in Text::Xslate directives to use your actual data, rather than the hardcoded data in the original spreadsheet.
The class to use for parsing the spreadsheet. Defaults to Spreadsheet::Template::Generator::Parser::XLSX.
Options to pass to the parser constructor. Defaults to an empty hashref.
Returns a string containing the JSON representation of the data contained in the spreadsheet file $filename. This representation is documented in Spreadsheet::Template.
$filename
Jesse Luehrs <doy@tozt.net>
This software is Copyright (c) 2015 by Jesse Luehrs.
This is free software, licensed under:
The MIT (X11) License
To install Spreadsheet::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Spreadsheet::Template
CPAN shell
perl -MCPAN -e shell install Spreadsheet::Template
For more information on module installation, please visit the detailed CPAN module installation guide.