The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Modwheel::Template - Abstract factory class for Modwheel template support.

SYNOPSIS

    my $templatesystem = $modwheel->siteconfig->{templatedriver};
    my $template   = Modwheel::Template->new(
        modwheel   => $modwheel,
        db         => $db,
        user       => $user,
        repository => $repository,
        object     => $object
    );
    $db->connect or die("Couldn't connect to database: ". $db->errstr);
   
    $template->init(input => 'myfile.html');
    print $template->process();
 
    $db->disconnect if $db->connected;

See individual template system support classes for more information. (i.e Template::Plugin::TT)

CONSTRUCTOR

Modwheel::Template->new(modwheel => $modwheel [...])

This function creates a Template class based on the current template driver in the configuration. Either a templatedriver configured for the current site, or a templatedriver defined in the global configuration directive.

This way we can support different templating systems.

EXPORT

None.

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.