NAME
Babble::Output::TTk - Output method for Babble that uses the Template Toolkit
SYNOPSIS
use Babble;
my $babble = Babble->new ();
...
print $babble->output (-type => "TTk",
-template => "example.tmpl",
meta_title => "Example Babble",
meta_desc => "This is an example babble");
DESCRIPTION
This module implements an output method for Babble, using the excellent Template Toolkit. As the toolkit is quite powerful, this output method provides only the minimal set of variables to a template. For example, items are not sorted, nor they are split up into a hash like for HTML::Template. On the other hand, all the methods of the different objects passed to the template are available, so one can sort the items at templating time.
A sort
method is also provided, which can sort an array of Babble::Document objects. With this method, one is able to filter the items, and sort them afterwards.
METHODS
output()
This output method recognises only the template argument, which will be passed to Template->process()
. All other arguments will be made available for use in the template.
Along with the arguments passed to this method, the paramaters set up with $babble->add_params()
, and the whole aggregation of all feeds, as a Babble::Document::Collection, will be made available to the template.
AUTHOR
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
SEE ALSO
Babble, Template, Babble::Output
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 67:
You can't have =items (as at line 73) unless the first thing after the =over is an =item