Rupert Lane > App-Zapzi-0.015 > App::Zapzi::Roles::Transformer

Download:
App-Zapzi-0.015.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.015   Source  

NAME ^

App::Zapzi::Roles::Transformer - role definition for transformer modules

VERSION ^

version 0.015

DESCRIPTION ^

This defines the transformer role for Zapzi. Transformers take articles in their native format and transform it to 'simple HTML' for consumption by an eReader.

ATTRIBUTES ^

input

Object of type App::Zapzi::FetchArticle to get original text from.

readable_text

Holds the readable text of the article

title

Title extracted from the article

REQUIRED METHODS ^

name

Name of transformer visible to user.

handles($content_type)

Returns true if this implementation handles the specified content_type, eg 'text/html'.

transform

Transform input to readable text and title.

AUTHOR ^

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Rupert Lane.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: