Author image Marco d'Itri

NAME

Bryar::Renderer::TT - Render a blog page with Template Toolkit

SYNOPSIS

        my ($content_type, $output) = $self->generate_html(...);

DESCRIPTION

This takes a Bryar blog, and the documents selected by the Bryar::Collector, and turns them into a page.

You'll probably want to read a Template Toolkit tutorial before mucking with the templates. Take a look at http://www.template-toolkit.org/

This module passes in an array called documents, full of Bryar::Document objects, and a Bryar object which is most useful for calling the config method on to extract things from the Bryar::Config.

METHODS

generate

    $self->generate($format, $bryar, @documents)

Returns a page from templates and documents provided by the Bryar object.

register_format

    $class->register_format($format, $filename, $content_type);

Registers a new format that Bryar is capable of producing. This can be used both for spitting out RSS/RDF/ATOM/whatever and for skinning the blog with alternate templates.

LICENSE

This module is free software, and may be distributed under the same terms as Perl itself.

AUTHOR

Copyright (C) 2003, Simon Cozens simon@kasei.com

some parts Copyright 2007 David Cantrell david@cantrell.org.uk

SEE ALSO