| Babble documentation | Contained in the Babble distribution. |
Babble::Theme::XML - XML theme for Babble
This theme provides an easy way to output FOAF and OPML subscription rolls for a given Babble. Not needing any kind of style, this theme is rather easy to configure.
The following variables are used by the template (variables coming from Babble::Document or Babble::Document::Collection sources are not listed here!)
The title of the Babble
E-Mail address of the Babble maintainer.
Name of the Babble maintainer.
Link to the FOAF feed the Babble provides.
Link to the homepage of the Babble.
An image associated with the feed. This must be a HASH reference, containing at least the url and link keys. The title, width ad height keys are also recognised.
This is only supported by the rss10 and rss20 formats.
This method sets up parameters for the Babble::Output::TTK->output method. It recognises only the -format option, which determines which output format is used. Currently foaf, opml, rss10 and rss20 are provided by the theme.
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
Babble::Theme, Babble::Output::TTk
| Babble documentation | Contained in the Babble distribution. |
## Babble/Theme/XML.pm ## Copyright (C) 2004 Gergely Nagy <algernon@bonehunter.rulez.org> ## ## This file is part of Babble. ## ## Babble is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; version 2 dated June, 1991. ## ## Babble is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package Babble::Theme::XML; use strict; use Date::Manip; use Babble::Theme; use Babble::Output::TTk; use vars qw(@ISA); @ISA = qw(Babble::Theme);
sub output { my ($self, $babble, $params) = @_; $self->_merge_params ($babble, $params, { -template => $self->_find_template ('XML', $params->{-format}), UnixDate => \&UnixDate, ParseDate => \&ParseDate, } ); return Babble::Output::TTk->output ($babble, $params); }
1; # arch-tag: 68f59e2d-8761-4fbf-bece-d345690dea1e