Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Jifty::View::Declare::Helpers
Additional subroutines for Jifty TD templates

Jifty::View::Declare::Helpers - Additional subroutines for Jifty TD templates


NAME

Jifty::View::Declare::Helpers - Additional subroutines for Jifty TD templates


DESCRIPTION

This library provides mixins to help build your application's user interface.


METHODS

form CODE

Takes a subroutine reference or block of perl as its only argument and renders it as a Jifty form.

hyperlink

Shortcut for link in the Jifty::Web manpage.

tangent

Shortcut for tangent in the Jifty::Web manpage.

redirect

Shortcut for redirect in the Jifty::Web manpage.

new_action

Shortcut for new_action in the Jifty::Web manpage.

render_region

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.

render_action $action_object, $fields, $args_to_pass_to_action

Renders an action out of whole cloth.

Arguments

$action_object
A Jifty::Action object which has already been initialized

$fields
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.

$args_to_pass_to_action
A hashref of arguments that should be passed to $action->form_field for every field of this action.

form_return

Shortcut for return in the Jifty::Web::Form manpage.

form_submit

Shortcut for submit in the Jifty::Web::Form manpage.

form_next_page

Shortcut for next_page in the Jifty::Web::Form manpage.

request

Shortcut for request in the Jifty::Web manpage.

current_user

Shortcut for current_user in the Jifty::Web manpage.

get args

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.

set key => val [ key => val ...]

Sets arguments for later grabbing with get.

render_param $action @args

Takes an action and one or more arguments to pass to the Jifty::Action- manpageform_field>.

page


 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.

content

Helper function for page { ... } content { ... }

wrapper $coderef

Render a page. $coderef is a the Template::Declare manpage coderef. This badly wants to be redone.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy