Mojolicious::Plugin::DefaultHelpers man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojolicious::Plugin::DUserlContributed PMojolicious::Plugin::DefaultHelpers(3)

NAME
       Mojolicious::Plugin::DefaultHelpers - Default Helpers Plugin

SYNOPSIS
	 # Mojolicious
	 $self->plugin('DefaultHelpers');

	 # Mojolicious::Lite
	 plugin 'DefaultHelpers';

DESCRIPTION
       Mojolicious::Plugin::DefaultHelpers is a collection of renderer helpers
       for Mojolicious.	 This is a core plugin, that means it is always
       enabled and its code a good example for learning to build new plugins.

HELPERS
   "app"
	 <%= app->secret %>

       Alias for "app" in Mojolicious::Controller.

   "content"
	 <%= content %>

       Insert content into a layout template.

   "content_for"
	 <% content_for foo => begin %>
	   test
	 <% end %>
	 <%= content_for 'foo' %>

       Append content to named buffer and retrieve it.

	 <% content_for message => begin %>
	   Hello
	 <% end %>
	 <% content_for message => begin %>
	   world!
	 <% end %>
	 <%= content_for 'message' %>

   "dumper"
	 <%= dumper $foo %>

       Dump a Perl data structure using Data::Dumper.

   "extends"
	 <% extends 'foo'; %>

       Extend a template.

   "flash"
	 <%= flash 'foo' %>

       Alias for "flash" in Mojolicious::Controller.

   "include"
	 <%= include 'menubar' %>
	 <%= include 'menubar', format => 'txt' %>

       Include a partial template, all arguments get localized automatically
       and are only available in the partial template.

   "layout"
	 <% layout 'green'; %>

       Render this template with a layout.

   "memorize"
	 <%= memorize begin %>
	   <%= time %>
	 <% end %>
	 <%= memorize {expires => time + 1} => begin %>
	   <%= time %>
	 <% end %>
	 <%= memorize foo => begin %>
	   <%= time %>
	 <% end %>
	 <%= memorize foo => {expires => time + 1} => begin %>
	   <%= time %>
	 <% end %>

       Memorize block result in memory and prevent future execution.

   "param"
	 <%= param 'foo' %>

       Alias for "param" in Mojolicious::Controller.

   "session"
	 <%= session 'foo' %>

       Alias for "session" in Mojolicious::Controller.

   "stash"
	 <%= stash 'foo' %>
	 <% stash foo => 'bar'; %>

       Alias for "stash" in Mojolicious::Controller.

   "title"
	 <% title 'Welcome!'; %>
	 <%= title %>

       Page title.

   "url_for"
	 <%= url_for 'named', controller => 'bar', action => 'baz' %>

       Alias for "url_for" in Mojolicious::Controller.

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

   "register"
	 $plugin->register;

       Register helpers in Mojolicious application.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-0Mojolicious::Plugin::DefaultHelpers(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net