mojolicious::plugin::eprenderer(3pm) [debian man page]
Mojolicious::Plugin::EPRenderer(3pm) User Contributed Perl Documentation Mojolicious::Plugin::EPRenderer(3pm)NAME
Mojolicious::Plugin::EPRenderer - Embedded Perl renderer plugin
SYNOPSIS
# Mojolicious
$self->plugin('EPRenderer');
$self->plugin(EPRenderer => {name => 'foo'});
$self->plugin(EPRenderer => {template => {line_start => '.'}});
# Mojolicious::Lite
plugin 'EPRenderer';
plugin EPRenderer => {name => 'foo'};
plugin EPRenderer => {template => {line_start => '.'}};
DESCRIPTION
Mojolicious::Plugin::EPRenderer is a renderer for "ep" templates.
"ep" or "Embedded Perl" is a simple template format where you embed perl code into documents. It is based on Mojo::Template, but extends it
with some convenient syntax sugar designed specifically for Mojolicious. It supports Mojolicious template helpers and exposes the stash
directly as Perl variables.
This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins, you're welcome to
fork it.
OPTIONS
Mojolicious::Plugin::EPRenderer supports the following options.
"name"
# Mojolicious::Lite
plugin EPRenderer => {name => 'foo'};
Handler name.
"template"
# Mojolicious::Lite
plugin EPRenderer => {template => {line_start => '.'}};
Attribute values passed to Mojo::Template object used to render templates.
METHODS
Mojolicious::Plugin::EPRenderer inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
$plugin->register($app, $conf);
Register renderer in Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::EPRenderer(3pm)
Check Out this Related Man Page
Mojolicious::Plugin::Mount(3pm) User Contributed Perl Documentation Mojolicious::Plugin::Mount(3pm)NAME
Mojolicious::Plugin::Mount - Application mount plugin
SYNOPSIS
# Mojolicious
my $route = $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'});
# Mojolicious::Lite
my $route = plugin Mount => {'/prefix' => '/home/sri/myapp.pl'};
# Adjust the generated route
my $example = plugin Mount => {'/example' => '/home/sri/example.pl'};
$example->to(message => 'It works great!');
# Mount application with host
plugin Mount => {'mojolicio.us' => '/home/sri/myapp.pl'};
# Host and path
plugin Mount => {'mojolicio.us/myapp' => '/home/sri/myapp.pl'};
# Or even hosts with wildcard subdomains
plugin Mount => {'*.mojolicio.us/myapp' => '/home/sri/myapp.pl'};
DESCRIPTION
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
METHODS
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
my $route = $plugin->register($app, $conf);
Mount Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::Mount(3pm)
Hi,
I dont know whether it is the right space to put it... but didnt found related Embedded.
I want to start learning Embedded systems in Unix, It would be greatly appreciable if someone could help me to start off ....
Thanks (0 Replies)
The loss of this plugin kept me at Firefox 4 for about 1.5 months now.
I live and work in the cloud and cannot be without my beloved Elasticfox*.
Today, I have enabled this "incompatible" add-on in Firefox5 using this method.
Open Firefox and open a new tab.
type in about:config
Read and... (0 Replies)