blob: 5a47b10c6c379ae19beaf6705a99e65e9fb0f25c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package Spreadsheet::Template::Processor::Identity;
use Moose;
# ABSTRACT: render a template file with no processing at all
with 'Spreadsheet::Template::Processor';
=head1 SYNOPSIS
my $template = Spreadsheet::Template->new(
processor_class => 'Spreadsheet::Template::Processor::Identity',
);
=head1 DESCRIPTION
This class implements L<Spreadsheet::Template::Processor>, and just passes
through the JSON data without modification.
=cut
sub process {
my $self = shift;
my ($contents, $vars) = @_;
return $contents;
}
__PACKAGE__->meta->make_immutable;
no Moose;
1;
|