Justin Hunter > Reaction-0.002005 > Reaction::UI::Widget::Data

Download:
Reaction-0.002005.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
Stalled  1
View/Report Bugs
Source  

NAME ^

Reaction::UI::Widget::Data - Abstract class to render a data hash reference

DESCRIPTION ^

This takes the args method return value of the viewport and populates the arguments with names and values from that value.

FRAGMENTS ^

widget

Sets an argument for every key and value in the viewport's args method return value (which is expected to be a hash reference).

EXAMPLE LAYOUT ^

Assuming this hash reference:

  { first_name => "Foo", last_name => "Bar" }

we can access it in a layout set like this:

  =widget Data
  
  =for layout widget
  
  Hello [% last_name | html %], [% first_name | html %]!
  
  =cut

AUTHORS ^

See Reaction::Class for authors.

LICENSE ^

See Reaction::Class for the license.

syntax highlighting: