Jesse Vincent > Jifty > Jifty::View::Declare

Download:
Jifty-0.70824.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  4
Stalled  1
View/Report Bugs
Source   Latest Release: Jifty-1.10518

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 ^

Template::Declare 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 Jifty::Dispatcher, the model language in Jifty::DBI::Schema, and the action language in Jifty::Param::Schema.

To use this view system, you must declare a class named MyApp::View (where MyApp is the name of your Jifyt 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 Template::Declare and also Jifty::View::Declare::Helpers for Jifty specific details.

SEE ALSO ^

Jifty::View::Declare::Helpers, Template::Declare

LICENSE ^

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

syntax highlighting: