The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 0.05

SYNOPSIS

  package MyProcessor;
  use Moose;

  with 'Spreadsheet::Template::Processor';

  sub process {
      # ...
  }

DESCRIPTION

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

METHODS

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 Spreadsheet::Template. This typically just means running it through a template engine of some kind.

AUTHOR

Jesse Luehrs <doy@tozt.net>

COPYRIGHT AND LICENSE

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

This is free software, licensed under:

  The MIT (X11) License