Mojolic...Renderer(3)

πŸ’… Mojolic...Renderer(3) β€” Mojolicious::Plugin::EPRenderer πŸ’…

okay so this page is from the User Contributed Perl Documentation, and the manual name is literally Mojolic...Renderer(3). bestie, we're talking about the Embedded Perl renderer plugin and it's giving very core-plugin main character energy 🫢


🌸 NAME 🌸

Mojolicious::Plugin::EPRenderer β€” Embedded Perl renderer plugin. yep, that's the whole vibe ✨


✨ SYNOPSIS ✨

# Mojolicious
$app->plugin('EPRenderer');
$app->plugin(EPRenderer => {name => 'foo'});
$app->plugin(EPRenderer => {name => 'bar', template => {line_start => '.'}});

# Mojolicious::Lite
plugin 'EPRenderer';
plugin EPRenderer => {name => 'foo'};
plugin EPRenderer => {name => 'bar', template => {line_start => '.'}};

πŸ¦‹ DESCRIPTION πŸ¦‹

Mojolicious::Plugin::EPRenderer is a renderer for Embedded Perl templates. for more info, see "Embedded Perl" in Mojolicious::Guides::Rendering. iykyk πŸ’–

this is a core plugin, which means it is always enabled and its code is a good example for learning to build new plugins β€” you're welcome to fork it, no cap 😌

see "PLUGINS" in Mojolicious::Plugins for a list of plugins that are available by default. slay 🌈


πŸ’– OPTIONS πŸ’–

Mojolicious::Plugin::EPRenderer supports the following options. let's go πŸŽ€

πŸŽ€ name πŸŽ€

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

handler name β€” defaults to "ep". that's it, that's the option πŸ’…

πŸ“ template πŸ“

# Mojolicious::Lite
plugin EPRenderer => {template => {line_start => '.'}};

attribute values passed to Mojo::Template objects used to render templates. very demure, very template-y 🧚


πŸ‘‘ METHODS πŸ‘‘

Mojolicious::Plugin::EPRenderer inherits all methods from Mojolicious::Plugin::EPLRenderer and implements the following new ones. periodt πŸ‘‘

⭐ register ⭐

$plugin->register(Mojolicious->new);
$plugin->register(Mojolicious->new, {name => 'foo'});

register renderer in Mojolicious application. iconic, honestly πŸ”₯


🌈 SEE ALSO 🌈


bye bestie πŸ’– β€” this page came from perl v5.42.0, dated 2026-07-15, and the footer still says Mojolic...Renderer(3). no notes, literally perfect 🫢

πŸ“¦ where this page comes from