cvs: smarty /docs/en/programmers/advanced-features advanced-features-postfilters.xml advanced-features-prefilters.xml

"Peter 'Mash' Morgan" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvspete_morgan1126631562@cvsserver>
pete_morgan		Tue Sep 13 13:12:42 2005 EDT

  Modified files:              
    /smarty/docs/en/programmers/advanced-features	
                                                 	advanced-features-postfilters.xml 
                                                 	advanced-features-prefilters.xml 
  Log:
  add links
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml?r1=1.3&r2=1.4&ty=u
Index: smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml
diff -u smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml:1.3 smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml:1.4
--- smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml:1.3	Thu Nov 25 17:25:51 2004
+++ smarty/docs/en/programmers/advanced-features/advanced-features-postfilters.xml	Tue Sep 13 13:12:41 2005
@@ -1,12 +1,13 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <sect1 id="advanced.features.postfilters">
  <title>Postfilters</title>
  <para>
   Template postfilters are PHP functions that your templates are ran through
   after they are compiled. Postfilters can be either
   <link linkend="api.register.postfilter">registered</link> or loaded
-  from the plugins directory by using
+  from the <link linkend="variable.plugins.dir">plugins directory</link>
+  by using
   <link linkend="api.load.filter">load_filter()</link> function or by
   setting
   <link linkend="variable.autoload.filters">$autoload_filters</link>
@@ -26,8 +27,8 @@
 }
 
 // register the postfilter
-$smarty->register_postfilter("add_header_comment");
-$smarty->display("index.tpl");
+$smarty->register_postfilter('add_header_comment');
+$smarty->display('index.tpl');
 ?>
 ]]>
   </programlisting>
@@ -41,6 +42,13 @@
 ]]>
   </screen>
  </example>
+ <para>
+ See also <link linkend="api.register.postfilter">register_postfilter()</link>,
+ <link linkend="advanced.features.prefilters">prefilters</link>
+ and
+ <link linkend="api.load.filter">load_filter()</link>
+ 
+ </para>
 </sect1>
 <!-- Keep this comment at the end of the file
 Local variables:
http://cvs.php.net/diff.php/smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml
diff -u smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml:1.2 smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml:1.3
--- smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml:1.2	Sat Nov 20 21:04:01 2004
+++ smarty/docs/en/programmers/advanced-features/advanced-features-prefilters.xml	Tue Sep 13 13:12:41 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <sect1 id="advanced.features.prefilters">
  <title>Prefilters</title>
  <para>
@@ -11,7 +11,8 @@
  <para>
   Prefilters can be either <link
   linkend="api.register.prefilter">registered</link> or loaded from
-  the plugins directory by using <link
+  the <link linkend="variable.plugins.dir">plugins directory</link>
+  by using <link
   linkend="api.load.filter">load_filter()</link> function or by setting
   the <link linkend="variable.autoload.filters">$autoload_filters</link> 
   variable.
@@ -22,25 +23,31 @@
  </para>
  <example>
   <title>using a template prefilter</title>
+    <para>
+     This will remove all the comments in the template source.
+  </para>
   <programlisting role="php">
 <![CDATA[
 <?php
 // put this in your application
 function remove_dw_comments($tpl_source, &$smarty)
 {
-    return preg_replace("/<!--#.*-->/U","",$tpl_source);
+    return preg_replace("/<!--#.*-->/U",'',$tpl_source);
 }
 
 // register the prefilter
-$smarty->register_prefilter("remove_dw_comments");
-$smarty->display("index.tpl");
+$smarty->register_prefilter('remove_dw_comments');
+$smarty->display('index.tpl');
 ?>
 ]]>
   </programlisting>
-  <para>
-   This will remove all the comments in the template source.
-  </para>
+
  </example>
+ <para>See also <link linkend="api.register.prefilter">register_prefilter()</link>,
+ <link linkend="advanced.features.postfilters">postfilters</link>
+ and
+ <link linkend="api.load.filter">load_filter()</link>
+ </para>
 </sect1>
 <!-- Keep this comment at the end of the file
 Local variables:

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