Mojolicious::Plugin::HTMLTemplateRenderer - Mojolicious Plugin
# Mojolicious $self->plugin('HTMLTemplateRenderer'); # Mojolicious::Lite plugin 'HTMLTemplateRenderer'; # Render HTML::Template handler and post 'utf8 => 1' option for next HTML::Template->new call get '/' => sub{ my $self = shift; $self->render('bender', handler => 'tmpl', tmpl_new_opts => {utf8 => 1}); } # Set default options for all HTML::Template->new calls plugin 'HTMLTemplateRenderer', tmpl_new_opts => {blind_cache => 1, open_mode => '<:encoding(UTF-16)'};
Mojolicious::Plugin::HTMLTemplateRenderer is a Mojolicious plugin.
Mojolicious::Plugin::HTMLTemplateRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register plugin in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
Copyright 2011 Bob Faist, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::HTMLTemplateRenderer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::HTMLTemplateRenderer
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::HTMLTemplateRenderer
For more information on module installation, please visit the detailed CPAN module installation guide.