cvs: smarty /docs/en/designers/language-builtin-functions language-function-capture.xml
"Peter 'Mash' Morgan" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1126638096@cvsserver> |
pete_morgan Tue Sep 13 15:01:36 2005 EDT
Modified files:
/smarty/docs/en/designers/language-builtin-functions
language-function-capture.xml
Log:
new example and removed prehistoric
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml?r1=1.9&r2=1.10&ty=u
Index: smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml
diff -u smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml:1.9 smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml:1.10
--- smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml:1.9 Tue Sep 13 14:41:43 2005
+++ smarty/docs/en/designers/language-builtin-functions/language-function-capture.xml Tue Sep 13 15:01:35 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<sect1 id="language.function.capture">
<title>{capture}</title>
@@ -51,14 +51,7 @@
</tgroup>
</informaltable>
- <note>
- <title>Technical Note</title>
- <para>
- Smarty 1.4.0 - 1.4.4 placed the captured content into the
- variable named $return. As of 1.4.5, this behavior was changed to use
- the name attribute, so update your templates accordingly.
- </para>
- </note>
+
<caution>
<para>
Be careful when capturing <link
@@ -96,16 +89,16 @@
<example>
<title>capturing content to a variable</title>
+ <para>This example also demonstrates the
+ <link linkend="language.function.popup">{popup}</link>
+ function</para>
<programlisting>
<![CDATA[
- {* we don't want to print a table row unless content is displayed *}
- {capture name=banner assign=foo}
+ {capture name=some_content assign=popText}
.... some content ....
{/capture}
- {if $condition}
- {$foo}
- {/if}
+ <a href="#" {popup caption='Help' text=$popText}>help</a>
]]>
</programlisting>
</example>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php