Jifty::View::Declare::Helpers - Additional subroutines for Jifty TD templates
This library provides mixins to help build your application's user interface.
Takes a subroutine reference or block of perl as its only argument and renders it as a Jifty form.
form
Shortcut for "link" in Jifty::Web.
Shortcut for "tangent" in Jifty::Web.
Shortcut for "redirect" in Jifty::Web.
Shortcut for "new_action" in Jifty::Web.
A shortcut for Jifty::Web::PageRegion->new(@_)->render which does the Template::Declare magic necessary to not mix its output with your current page's.
Renders an action out of whole cloth.
Arguments
A Jifty::Action object which has already been initialized
A reference to an array of fields that should be rendered when displaying this action. If left undefined, all of the action's fields will be rendered.
A hashref of arguments that should be passed to $action->form_field for every field of this action.
Shortcut for "return" in Jifty::Web::Form.
Shortcut for "submit" in Jifty::Web::Form.
Shortcut for "next_page" in Jifty::Web::Form.
Shortcut for "request" in Jifty::Web.
Shortcut for "current_user" in Jifty::Web.
Returns arguments as set in the dispatcher or with "set" below. If called in scalar context, pulls the first item in args and returns it. If called in list context, returns the values of all items in args.
args
Sets arguments for later grabbing with get.
Takes an action and one or more arguments to pass to Jifty::Action-form_field>.
template 'foo' => page {{ title is 'Foo' } ... }; or template 'foo' => page { title => 'Foo' } content { ... };
Renders an HTML page wrapped in "wrapper", after calling "/_elements/nav" and setting a content type. Generally, you shouldn't be using "/_elements/nav" but a Dispatcher rule instead.
If page/content calling convention is used, the return value of the first sub will be passed into wrapper as the second argument as a hashref, as well as the last argument for the content sub.
page/content
Helper function for page { ... } content { ... }
Render a page. $coderef is a Template::Declare coderef. This badly wants to be redone.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.