cvs: smarty /docs/en/programmers/advanced-features template-resources.xml

"George Miroshnikov" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsfreespace1101423668@cvsserver>
freespace		Thu Nov 25 18:01:08 2004 EDT

  Modified files:              
    /smarty/docs/en/programmers/advanced-features	
                                                 	template-resources.xml 
  Log:
  Separated some template code from php code.
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers/advanced-features/template-resources.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/en/programmers/advanced-features/template-resources.xml
diff -u smarty/docs/en/programmers/advanced-features/template-resources.xml:1.2 smarty/docs/en/programmers/advanced-features/template-resources.xml:1.3
--- smarty/docs/en/programmers/advanced-features/template-resources.xml:1.2	Sat Nov 20 21:04:01 2004
+++ smarty/docs/en/programmers/advanced-features/template-resources.xml	Thu Nov 25 18:01:07 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
   <sect1 id="template.resources">
    <title>Resources</title>
    <para>
@@ -50,11 +50,16 @@
 $smarty->display("file:/export/templates/index.tpl");
 $smarty->display("file:/path/to/my/templates/menu.tpl");
 ?>
-
-{* from within Smarty template *}
+]]>
+     </programlisting>
+     <para>
+      And from within Smarty template:
+     </para>
+     <programlisting>
+<![CDATA[
 {include file="file:/usr/local/share/templates/navigation.tpl"}
 ]]>
-</programlisting>
+     </programlisting>
     </example>
 
     <sect3 id="templates.windows.filepath">
@@ -73,8 +78,13 @@
 $smarty->display("file:C:/export/templates/index.tpl");
 $smarty->display("file:F:/path/to/my/templates/menu.tpl");
 ?>
-
-{* from within Smarty template *}
+]]>
+     </programlisting>
+     <para>
+      And from within Smarty template:
+     </para>
+     <programlisting>
+<![CDATA[
 {include file="file:D:/usr/local/share/templates/navigation.tpl"}
 ]]>
 </programlisting>
@@ -162,11 +172,16 @@
 // using resource from php script
 $smarty->display("db:index.tpl");
 ?>
-
-{* using resource from within Smarty template *}
+]]>
+     </programlisting>
+     <para>
+      And from within Smarty template:
+     </para>
+     <programlisting>
+<![CDATA[
 {include file="db:/extras/navigation.tpl"}
 ]]>
-</programlisting>
+     </programlisting>
     </example>
    </sect2>
 
@@ -205,10 +220,10 @@
 $smarty->default_template_handler_func = 'make_template';
 ?>
 ]]>
-</programlisting>
+     </programlisting>
     </example>
    </sect2>
-</sect1>
+  </sect1>
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

-- 
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.