NAME

Mojolicious::Plugin::MarkaplRenderer - Markapl template plugin for Mojolicious

VERSION

version 0.2.0

DESCRIPTION

This is Markapl for Mojolicious.

SYNOPSIS

    # In app
    sub startup {
        my $self = shift;

        $self->plugins->register_plugin('Mojolicious::Plugin::MarkaplRenderer', $self, view_class => 'MyProject::View');
        $self->renderer->default_handler('markapl');
    }

    # Then in MyProject::View
    package MyProject::View;
    use Markapl;

    template 'index/index' => sub {
        html {
            head {
                meta(charset => 'UTF-8');
                title { 'I am title' };
            }

            body {
                p { 'testing paragraph...' };

                # ...
            }
        };
    };

    1;

AUTHOR

Gea-Suan Lin, <gslin at gslin.org>

LICENSE AND COPYRIGHT

Copyright 2011 Gea-Suan Lin.

This software is released under 3-clause BSD license. See http://www.opensource.org/licenses/bsd-license.php for more information.