NAME

Modwheel::Session - Easily create a Modwheel session.

SYNOPSIS

Modwheel::Session is used for easily creating a Modwheel session in a terminal or CGI-program.

use Modwheel::Session;

my $modwheel_config = {
    prefix          => '/opt/devel/Modwheel',
    configfile      => 't/modwheelconfig.yml',
    site            => 'modwheeltest',
    configcachetype => 'memshare',
    locale          => 'en_EN',
};

my ($modwheel, $user, $db, $object, $repository, $template) =
    modwheel_session($modwheel_config, qw(db user object template repository));
$modwheel->debug(1);
$db->connect();

my $args = { };
$template->init(input => './myfile.html');
print $template->process($args)

$db->disconnect() if $db->connected();

FUNCTIONS

modwheel_session($modwheel_config, qw(db user object template repository))

Create a new modwheel session with the given config. Returns an array with the objects you've asked for.

EXPORT

This module will when used import all Modwheel related classes, and also force strict in main.

HISTORY

0.01

Initial version.

SEE ALSO

The README included in the Modwheel distribution.

The Modwheel website: http://www.0x61736b.net/Modwheel/

AUTHORS

Ask Solem Hoel, ask@0x61736b.net.

COPYRIGHT, LICENSE

Copyright (C) 2007 by Ask Solem Hoel ask@0x61736b.net.

All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.