Gergely Nagy > Babble-0.07 > Babble::Theme

Download:
Babble-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Babble::Theme - Base class for Babble themes

DESCRIPTION ^

This class is the base of all other themes. It provides methods to make it easier to write themes. It shouldn't be used directly, ever.

METHODS ^

_find_template()

Tries to find the filename of the template belonging to the theme specified. The function goes through @INC to try and find Babble/Theme/$theme/$theme.tmpl. Returns the filename if found, undef otherwise.

_merge_params ()

Given a Babble object, and hashrefs of old and new params, attempts to merge the three. That is, if a key in the new params hash is set, and is not set in neither the old param hash, nor in the Babble object, the old param set will be updated. Otherwise it is left untouched.

This way, one can set defaults for a theme.

AUTHOR ^

Gergely Nagy, algernon@bonehunter.rulez.org

Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.

SEE ALSO ^

Babble::Output

syntax highlighting: