Skip to content

darutoko/Mojolicious-Plugin-PugRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Mojolicious::Plugin::PugRenderer - Template::Pug renderer plugin

SYNOPSIS

# Mojolicious
$self->plugin('PugRenderer');
$self->plugin(PugRenderer => {name => 'foo'});
$self->plugin(PugRenderer => {name => 'bar', template => {basedir => 'templates'}});

# Mojolicious::Lite
plugin 'PugRenderer';
plugin PugRenderer => {name => 'foo'};
plugin PugRenderer => {name => 'bar', template => {basedir => 'templates'}};

DESCRIPTION

Mojolicious::Plugin::PugRenderer is a renderer for Template::Pug templates.

OPTIONS

Mojolicious::Plugin::PugRenderer supports the following options.

name

# Mojolicious::Lite
plugin PugRenderer => {name => 'foo'};

Handler name, defaults to pug.

template

# Mojolicious::Lite
plugin PugRenderer => {template => {basedir => 'templates'}};

Attribute values passed to Template::Pug object used to render templates.

METHODS

Mojolicious::Plugin::PugRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

$plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicious.org.

About

Template::Pug renderer plugin for Mojolicious

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages