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

NAME

App::Zapzi::Roles::Publisher - role definition for publisher modules

VERSION

version 0.017

DESCRIPTION

This defines the publisher role for Zapzi. Publishers take a folder and create an eBook or collection file containing articles in the folder.

ATTRIBUTES

folder

Folder of articles to publish.

encoding

Encoding to use when publishing.

collection_title

Title of collection, eg eBook name.

filename

File that the published ebook is stored in.

collection_data

Returns the raw data (eg combined HTML) produced by the publisher - for testing.

REQUIRED METHODS

name

Name of publisher visible to user.

start_publication($folder, $encoding)

Starts a new publication for the given folder in the given encoding.

add_article($article)

Adds an article to the publication.

finish_publication()

Finishes publication and returns the filename created.

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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.