The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Spreadsheet::Template::Processor;
BEGIN {
  $Spreadsheet::Template::Processor::AUTHORITY = 'cpan:DOY';
}
{
  $Spreadsheet::Template::Processor::VERSION = '0.02';
}
use Moose::Role;
# ABSTRACT: role for classes which preprocess a template file before rendering

requires 'process';



no Moose::Role;

1;

__END__

=pod

=head1 NAME

Spreadsheet::Template::Processor - role for classes which preprocess a template file before rendering

=head1 VERSION

version 0.02

=head1 SYNOPSIS

  package MyProcessor;
  use Moose;

  with 'Spreadsheet::Template::Processor';

  sub process {
      # ...
  }

=head1 DESCRIPTION

This role should be consumed by any class which will be used as the
C<processor_class> in a L<Spreadsheet::Template> instance.

=head1 METHODS

=head2 process($contents, $vars)

This method is required to be implemented by any classes which consume this
role. It should take the contents of the template and return a JSON file as
described in L<Spreadsheet::Template>. This typically just means running it
through a template engine of some kind.

=head1 AUTHOR

Jesse Luehrs <doy@tozt.net>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by Jesse Luehrs.

This is free software, licensed under:

  The MIT (X11) License

=cut