Jesse Luehrs > Spreadsheet-Template-0.02 > Spreadsheet::Template::Processor

Download:
Spreadsheet-Template-0.02.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.02   Source   Latest Release: Spreadsheet-Template-0.04

NAME ^

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

VERSION ^

version 0.02

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) 2013 by Jesse Luehrs.

This is free software, licensed under:

  The MIT (X11) License
syntax highlighting: