[Jifty-commit] r4515 - in Jifty-Book: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Nov 21 11:13:33 EST 2007


Author: sterling
Date: Wed Nov 21 11:13:32 2007
New Revision: 4515

Added:
   Jifty-Book/doc/Jifty/Book/Part-B/07-Viewing_your_Data.pod
Modified:
   Jifty-Book/   (props changed)

Log:
 r14190 at riddle:  andrew | 2007-11-21 10:04:12 -0600
 Adding the chapter outline for building views.


Added: Jifty-Book/doc/Jifty/Book/Part-B/07-Viewing_your_Data.pod
==============================================================================
--- (empty file)
+++ Jifty-Book/doc/Jifty/Book/Part-B/07-Viewing_your_Data.pod	Wed Nov 21 11:13:32 2007
@@ -0,0 +1,87 @@
+=head0 Viewing your Data
+
+Obviously, if you're building a web application, you need to be able to view your data in a web browser. Preferably, the view should include a nice design and graphics to make the data or content of your web application easy to see and understand.
+
+In Jifty, you view your data by building a dispatcher and creating templates for each kind of view. Jifty provides two different mechanisms for generating templates.
+
+=over
+
+=item Mason
+
+This is the mechanism that Jifty has had from the beginning and is one that many Perl web developers may already be familiar with.
+
+=item Template::Declare
+
+This is a system that was designed from the ground up to fit in with the declarative structure of many of Jifty's other features. This has some additional benefits over Mason and is generally considered the preferred templating tool.
+
+=back
+
+Both templating systems are here to stay, so you can use both and in most ways you can use them interchangeably (though, you will need to be aware of some caveats if you do use both). In the future, Jifty may also add additional templating systems.
+
+=head1 Tutorial
+
+=head1 Reference
+
+=head2 The Dispatcher
+
+=head3 Controller Pattern
+
+=head3 Matching Requests
+
+=head4 on
+
+=head4 before
+
+=head4 after
+
+=head4 before plugin
+
+=head4 after plugin
+
+=head4 GET
+
+=head4 POST
+
+=head3 Preparing the Response
+
+=head4 get
+
+=head4 set
+
+=head4 show
+
+=head4 redirect
+
+=head4 dispatch
+
+=head3 Best Practicies
+
+=head4 What Goes Here?
+
+=head4 What Does Not?
+
+=head2 Mason versus Template::Declare
+
+=head2 Template::Declare
+
+=head3 Building a View Class
+
+=head3 Adding Templates
+
+=head3 Adding Private Templates
+
+=head3 Using CRUD
+
+=head2 Mason
+
+=head3 Creating Template Files
+
+=head3 Private Templates
+
+=head2 Chart Plugin
+
+=head1 Testing
+
+=head2 Test::WWW::Declare
+
+=head2 Jifty::Test::WWW::Mechanize


More information about the Jifty-commit mailing list