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
Build views using Template::Declare

Jifty::View::Declare - Build views using Template::Declare


NAME

Jifty::View::Declare - Build views using Template::Declare


SYNOPSIS


    package MyApp::View;

    use Jifty::View::Declare -base;

    template 'index.html' => page {

        { title is 'Some Title' }

        b { "The Index" };

    };


DESCRIPTION

the Template::Declare manpage is a templating system using a declarative syntax built on top of Perl. This provides a templating language built in a similar style to the dispatcher language in the Jifty::Dispatcher manpage, the model language in the Jifty::DBI::Schema manpage, and the action language in the Jifty::Param::Schema manpage.

To use this view system, you must declare a class named MyApp::View (where MyApp is the name of your Jifty application). Use this library class to bring in all the details needed to make it work:


  package MyApp::View;

  use Jifty::View::Declare -base;

  # Your code...

For more details on how to write the individual templates, see the Template::Declare manpage and also the Jifty::View::Declare::Helpers manpage for Jifty specific details.


SEE ALSO

the Jifty::View::Declare::Helpers manpage, the Template::Declare manpage


LICENSE

Jifty is Copyright 2005-2007 Best Practical Solutions, LLC. Jifty is distrib uted under the same terms as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy