blob: 6e0453ed30e9d76b9c33ca5723a46a32968dd244 (
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
30
31
32
33
34
35
36
37
|
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;
=begin Pod::Coverage
process
=end Pod::Coverage
=cut
1;
|