[MKDoc-commit] [Petal] de-fuddled my_var / some_object pod confusion

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Wed Jun 22 12:19:15 BST 2005


Log Message:
-----------
[Petal] de-fuddled my_var / some_object pod confusion

Modified Files:
--------------
    Petal/lib:
        Petal.pm
    Petal:
        Changes

-------------- next part --------------
Index: Petal.pm
===================================================================
RCS file: /var/spool/cvs/Petal/lib/Petal.pm,v
retrieving revision 1.132
retrieving revision 1.133
diff -Llib/Petal.pm -Llib/Petal.pm -u -r1.132 -r1.133
--- lib/Petal.pm
+++ lib/Petal.pm
@@ -764,7 +764,7 @@
     local $Petal::OUTPUT = 'XHTML';
 
     my $template = new Petal ('foo.xhtml');
-    template->process ( my_var => my_var() );
+    template->process ( my_var => some_object() );
 
 some_object() is a subroutine that returns some kind of object, may it be a scalar,
 object, array referebce or hash reference. Let's see what we can do...
@@ -800,8 +800,8 @@
 
 =head2 Version 3: Personalizable
 
-Now let's say that your method some_object() can take an optional
-argument so that C<$my_var-E<gt>hello_world ('Jack')> returns I<Hello Jack>.
+Now let's say that your method hello_world() can take an optional
+argument so that C<$some_object-E<gt>hello_world ('Jack')> returns I<Hello Jack>.
 
 You would write:
 
@@ -845,7 +845,7 @@
     local $Petal::OUTPUT = 'XHTML';
 
     my $template = new Petal ( file => 'hello_world', lang => 'fr-CA' );
-    print $template->process ( my_var => my_var() );
+    print $template->process ( my_var => some_object() );
 
 What will happen is that the C<$template> object will try to find a file named
 C<fr-CA>, then C<fr>, then will default to <en>. It should work fine for
Index: Changes
===================================================================
RCS file: /var/spool/cvs/Petal/Changes,v
retrieving revision 1.136
retrieving revision 1.137
diff -LChanges -LChanges -u -r1.136 -r1.137
--- Changes
+++ Changes
@@ -4,6 +4,7 @@
     - check that &nbsp; becomes chr(160) not chr(194) (William McKee)
     - Fix bug where \-escaped semicolons were not recognised (William McKee)
     - test 090 for ${1} appearance when Petal::I18N->process
+    - pod fixes
 
 2.16 Fri Mar 18 15:30:00 2005
     - Added Cookbook.pod documentation and associated tests from William McKee


More information about the MKDoc-commit mailing list