cvs: smarty /docs/en/designers/language-modifiers language-modifier-capitalize.xml

"boots" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsboots1093327254@cvsserver>
boots		Tue Aug 24 02:00:54 2004 EDT

  Modified files:              
    /smarty/docs/en/designers/language-modifiers	
                                                	language-modifier-capitalize.xml 
  Log:
  document new optional parameter for capitalize modifier and update example to show behaviour
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml
diff -u smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml:1.1 smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml:1.2
--- smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml:1.1	Tue Apr 13 04:40:22 2004
+++ smarty/docs/en/designers/language-modifiers/language-modifier-capitalize.xml	Tue Aug 24 02:00:54 2004
@@ -1,7 +1,35 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
  <sect1 id="language.modifier.capitalize">
   <title>capitalize</title>
+  <informaltable frame="all">
+   <tgroup cols="5">
+    <colspec colname="param" align="center" />
+    <colspec colname="type" align="center" />
+    <colspec colname="required" align="center" />
+    <colspec colname="default" align="center" />
+    <colspec colname="desc" />
+    <thead>
+     <row>
+      <entry>Parameter Position</entry>
+      <entry>Type</entry>
+      <entry>Required</entry>
+      <entry>Default</entry>
+      <entry>Description</entry>
+     </row>
+    </thead>
+    <tbody>
+     <row>
+      <entry>1</entry>
+      <entry>boolean</entry>
+      <entry>No</entry>
+      <entry>false</entry>
+      <entry>This determines whether or not words with
+      digits will be uppercased</entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>  
   <para>
    This is used to capitalize the first letter of all words in a variable.
   </para>
@@ -12,7 +40,7 @@
 <?php
 
 $smarty = new Smarty;
-$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.');
+$smarty->assign('articleTitle', 'next x-men film, x3, delayed.');
 $smarty->display('index.tpl');
 
 ?>
@@ -25,6 +53,7 @@
 <![CDATA[
 {$articleTitle}
 {$articleTitle|capitalize}
+{$articleTitle|capitalize:true}
 ]]>
    </programlisting>
    <para>
@@ -32,8 +61,9 @@
    </para>
    <screen>
 <![CDATA[
-Police begin campaign to rundown jaywalkers.
-Police Begin Campaign To Rundown Jaywalkers.
+next x-men film, x3, delayed.
+Next X-Men Film, x3, Delayed.
+Next X-Men Film, X3, Delayed.
 ]]>
    </screen>
   </example>
@@ -57,4 +87,4 @@
 vim600: syn=xml fen fdm=syntax fdl=2 si
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
--->
\ No newline at end of file
+-->

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.