GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  JIFTY::VIEW::DECLARE (3)

.ds Aq ’

NAME

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

CONTENTS

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 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 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-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 JIFTY::VIEW::DECLARE (3) 2010-12-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.