Babble::Theme - Base class for Babble themes


Back to Top


NAME

Babble::Theme - Base class for Babble themes

Back to Top


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.

Back to Top


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.

Back to Top


AUTHOR

Gergely Nagy, algernon@bonehunter.rulez.org

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

Back to Top


SEE ALSO

Babble::Output

Back to Top

 Babble::Theme - Base class for Babble themes