Skip to content

Latest commit

 

History

History
129 lines (88 loc) · 3.14 KB

README.pod

File metadata and controls

129 lines (88 loc) · 3.14 KB

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.