[Jifty-commit] r2228 - jifty/trunk/lib/Jifty/Manual

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Nov 30 07:22:07 EST 2006


Author: agentz
Date: Thu Nov 30 07:22:02 2006
New Revision: 2228

Modified:
   jifty/trunk/lib/Jifty/Manual/Tutorial.pod

Log:
[Manual/Tutorial.pod]
- a few additions to the explanation
- a few cleanups in the sample code

Modified: jifty/trunk/lib/Jifty/Manual/Tutorial.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Tutorial.pod	(original)
+++ jifty/trunk/lib/Jifty/Manual/Tutorial.pod	Thu Nov 30 07:22:02 2006
@@ -261,6 +261,11 @@
   # ./bin/jifty server
   INFO - You can connect to your server at http://localhost:8888/
 
+Please always run this command at the root directory of your Jifty applications,
+or you'll be caught by a lot of errors.
+
+For many platforms, a simple "jifty server" command works too. :)
+
 =head2 Building a user interface
 
 The administrative web does give you everything you need to work with your
@@ -275,10 +280,10 @@
 Open a new file called F<post> in your text editor. Make it look like this:
 
   <%init>
-  my $action = Jifty->web->new_action(class =>'CreatePost');
+  my $action = Jifty->web->new_action(class => 'CreatePost');
   </%init>
 
-  <&|/_elements/wrapper, title => "Post to your weblog" &>
+  <&| /_elements/wrapper, title => "Post to your weblog" &>
   <% Jifty->web->form->start() %>
   <% Jifty->web->form->next_page( url => '/') %>
   <% $action->form_field('title') %>
@@ -287,6 +292,9 @@
   <% Jifty->web->form->end() %>
   </&>
 
+Yes, it's a template file in L<HTML::Mason> syntax. If you're not familiar with Mason,
+we recommend you to consult its online documentation for details.
+
 =head3 Viewing
 
 It's really easy to get a I<basic> listing of entries and a little bit more
@@ -308,7 +316,7 @@
   $posts->unlimit();
   </%init>
 
-  <&|/_elements/wrapper, title => Jifty->config->framework('ApplicationName') &>
+  <&| /_elements/wrapper, title => Jifty->config->framework('ApplicationName') &>
   <dl>
   % while (my $post = $posts->next) {
    <dt><%$post->title%></dt>
@@ -319,7 +327,6 @@
 
 (Make sure to remove that leading whitespace!)
 
-
 =head4 The complex way that gets you lots of cool toys
 
 The I<complex way> involves using one of Jifty's advanced features: I<Page
@@ -334,7 +341,7 @@
 The complex way starts off about the same as the easy way.  Open a new file
 called F<share/web/templates/index.html> in your text editor.  Fill it with this:
 
-  <&|/_elements/wrapper, title => Jifty->config->framework('ApplicationName') &>
+  <&| /_elements/wrapper, title => Jifty->config->framework('ApplicationName') &>
 
   <% Jifty->web->region(name => "myweblog-posts",
                         path => "/fragments/page_of_posts") %>
@@ -482,6 +489,8 @@
 
 =item * Continuations in depth
 
+=item * Customized view (user-defined wrappers and css)
+
 =back
 
 =cut


More information about the Jifty-commit mailing list