NAME

Contentment - Contentment is a Mason/Perl-bsed CMS

DESCRIPTION

General configuration information and some general-purpose methods can be found in this module.

$conf = Contentment->configuration

Reads the configuration files Contentment::Config::ETC_DIR/Contentment.defaults.conf and Contentment::Config::ETC_DIR/Contentment.conf.

my $result = Contentment->run_plugin($plugin, @args)

This method loads the given plugin $plugin and runs it with the given @args and returns the result $result. The $plugin variable is a complete package and method name. The method name is stripped and the package name is "used". Then, the method is called.

Contentment->call_hooks($dir, @args)

Run the appropriate generator on all files in /content/hooks/$dir and all subdirectories. The given @args are passed each time.

Logs, but otherwise ignores, any errors that occur.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@users.sourceforge.net>

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

Contentment is distributed and licensed under the same terms as Perl itself.