Mojolicious::Plugin::MarkaplRenderer - Markapl template plugin for Mojolicious
version 0.2.0
This is Markapl for Mojolicious.
# 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;
Gea-Suan Lin, <gslin at gslin.org>
<gslin at gslin.org>
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.
To install Mojolicious::Plugin::MarkaplRenderer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::MarkaplRenderer
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::MarkaplRenderer
For more information on module installation, please visit the detailed CPAN module installation guide.