[Jifty-commit] r6119 - jifty/trunk/plugins/ViewDeclarePage/lib/Jifty/Plugin/ViewDeclarePage

Jifty commits jifty-commit at lists.jifty.org
Tue Dec 16 18:37:01 EST 2008


Author: ruz
Date: Tue Dec 16 18:37:01 2008
New Revision: 6119

Modified:
   jifty/trunk/plugins/ViewDeclarePage/lib/Jifty/Plugin/ViewDeclarePage/Page.pm

Log:
* replace 'title is' with 'page_title is'
** some tags has title attribute, TD uses AUTOLOAD so we can not help it
** 'page title' is occupied by 'page' function with a prototype
** page_title is still very descriptive and can be used deep inside, not
   only right in page { } code

Modified: jifty/trunk/plugins/ViewDeclarePage/lib/Jifty/Plugin/ViewDeclarePage/Page.pm
==============================================================================
--- jifty/trunk/plugins/ViewDeclarePage/lib/Jifty/Plugin/ViewDeclarePage/Page.pm	(original)
+++ jifty/trunk/plugins/ViewDeclarePage/lib/Jifty/Plugin/ViewDeclarePage/Page.pm	Tue Dec 16 18:37:01 2008
@@ -67,7 +67,7 @@
 
 =item title is always rendered in page
 
-Even when there is no 'title is ...' in the content code,
+Even when there is no 'page_title is ...' in the content code,
 see L</instrument_content> and L</render_title_inpage>.
 
 =item no html in title
@@ -214,21 +214,21 @@
 
 Calls L</render_doctype>.
 
-=item C<title is ...>
+=item C<page_title is ...>
 
 You can define dynamic title using the following:
 
     template some => page {
         my $page_title = ...;
         ...
-        title is $page_title;
+        page_title is $page_title;
         ...
     };
 
 Don't want to define dynamic title then as well you can use syntax
 described in L</init> above.
 
-When 'title is' is used in the content code, L</render_title_inpage>
+When 'page_title is' is used in the content code, L</render_title_inpage>
 is called, read more in L</instrument_content>.
 
 L</render_title_inhead> is called during rendering of the head tag,
@@ -360,10 +360,10 @@
 
 =over 4
 
-=item setups local 'title is ...' handler which calls L</render_title_inpage>
-if 'title is' is used.
+=item setups local 'page_title is ...' handler which calls L</render_title_inpage>
+if 'page_title is' is used.
 
-=item if 'title is' is not used then calls L</render_title_inpage> after
+=item if 'page_title is' is not used then calls L</render_title_inpage> after
 and put result into output stream before the content.
 
 =item setup handler for 'add rel ...' and 'add rev ...', that calls
@@ -381,7 +381,7 @@
     no warnings qw( redefine once );
 
     my $seen_title = 0;
-    local *is::title = sub {
+    local *is::page_title = sub {
         shift;
         $seen_title = 1;
         no warnings qw(uninitialized);


More information about the Jifty-commit mailing list