1Mojolicious::Plugin::EPURseenrdeCroenrt(r3i)buted Perl DMoocjuomleinctiaotuiso:n:Plugin::EPRenderer(3)
2
3
4
6 Mojolicious::Plugin::EPRenderer - Embedded Perl renderer plugin
7
9 # Mojolicious
10 $app->plugin('EPRenderer');
11 $app->plugin(EPRenderer => {name => 'foo'});
12 $app->plugin(EPRenderer => {name => 'bar', template => {line_start => '.'}});
13
14 # Mojolicious::Lite
15 plugin 'EPRenderer';
16 plugin EPRenderer => {name => 'foo'};
17 plugin EPRenderer => {name => 'bar', template => {line_start => '.'}};
18
20 Mojolicious::Plugin::EPRenderer is a renderer for Embedded Perl
21 templates. For more information see "Embedded Perl" in
22 Mojolicious::Guides::Rendering.
23
24 This is a core plugin, that means it is always enabled and its code a
25 good example for learning to build new plugins, you're welcome to fork
26 it.
27
28 See "PLUGINS" in Mojolicious::Plugins for a list of plugins that are
29 available by default.
30
32 Mojolicious::Plugin::EPRenderer supports the following options.
33
34 name
35 # Mojolicious::Lite
36 plugin EPRenderer => {name => 'foo'};
37
38 Handler name, defaults to "ep".
39
40 template
41 # Mojolicious::Lite
42 plugin EPRenderer => {template => {line_start => '.'}};
43
44 Attribute values passed to Mojo::Template objects used to render
45 templates.
46
48 Mojolicious::Plugin::EPRenderer inherits all methods from
49 Mojolicious::Plugin::EPLRenderer and implements the following new ones.
50
51 register
52 $plugin->register(Mojolicious->new);
53 $plugin->register(Mojolicious->new, {name => 'foo'});
54
55 Register renderer in Mojolicious application.
56
58 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
59
60
61
62perl v5.28.0 2018-06-23Mojolicious::Plugin::EPRenderer(3)