cvs: smarty /docs/en/designers/language-builtin-functions language-function-insert.xml

[email protected] ("Peter 'Mash' Morgan") Tue, 28 Mar 2006 01:08:15 -0000
Newsgroups php.smarty.cvs
Message-ID <cvspete_morgan1143508095@cvsserver>
pete_morgan		Tue Mar 28 01:08:15 2006 UTC

  Modified files:              
    /smarty/docs/en/designers/language-builtin-functions	
                                                        	language-function-insert.xml 
  Log:
  Boots.. hope this makes sense !
  
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml?r1=1.7&r2=1.8&diff_format=u
Index: smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml:1.7 smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml:1.8
--- smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml:1.7	Fri Feb 17 22:18:51 2006
+++ smarty/docs/en/designers/language-builtin-functions/language-function-insert.xml	Tue Mar 28 01:08:14 2006
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <sect1 id="language.function.insert">
  <title>{insert}</title>
   <para>
    {insert} tags work much like <link
    linkend="language.function.include">{include}</link> tags,
-   except that {insert} tags are NOT cached when you have
-   template <link linkend="caching">caching</link> enabled. They
+   except that {insert} tags are NOT cached when 
+   template <link linkend="caching">caching</link> is enabled. They
    will be executed on every invocation of the template.
  </para>
  
@@ -61,6 +61,11 @@
   </tgroup>
  </informaltable>
 
+<para>
+Variables passed to {insert} will be cached by the calling script. Instead reference a variable within the inserted file!! 
+ie {insert foo='baa'} will be cached, wheras $foo within the {insert}ed template will not. 
+</para>
+
  <para>
   Let's say you have a template with a banner slot at the top of
   the page. The banner can contain any mixture of HTML, images,