cvs: smarty /docs/en/designers/language-basic-syntax language-syntax-functions.xml
[email protected] ("Peter 'Mash' Morgan") Mon, 13 Mar 2006 21:56:39 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1142286999@cvsserver> |
pete_morgan Mon Mar 13 21:56:39 2006 UTC
Modified files:
/smarty/docs/en/designers/language-basic-syntax
language-syntax-functions.xml
Log:
tweek
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml?r1=1.6&r2=1.7&diff_format=u
Index: smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml
diff -u smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml:1.6 smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml:1.7
--- smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml:1.6 Fri May 27 16:25:01 2005
+++ smarty/docs/en/designers/language-basic-syntax/language-syntax-functions.xml Mon Mar 13 21:56:39 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<sect1 id="language.syntax.functions">
<title>Functions</title>
<para>
@@ -9,15 +9,16 @@
function and its
<link linkend="language.syntax.attributes">attributes</link>
into delimiters like so: {funcname
- attr1="val" attr2="val"}.
+ attr1='val1' attr2='val2'}.
</para>
<example>
<title>function syntax</title>
<programlisting>
<![CDATA[
-{config_load file="colors.conf"}
+{config_load file='colors.conf'}
-{include file="header.tpl"}
+{include file='header.tpl'}
+{insert file='banner_ads.tpl'}
{if $highlight_name}
Welcome, <font color="{#fontColor#}">{$name}!</font>
@@ -25,7 +26,7 @@
Welcome, {$name}!
{/if}
-{include file="footer.tpl"}
+{include file='footer.tpl'}
]]>
</programlisting>
</example>
@@ -39,11 +40,11 @@
<link linkend="language.function.if">{if}</link>,
<link linkend="language.function.section">{section}</link> and
<link linkend="language.function.strip">{strip}</link>.
- They cannot be modified.
+ They should not be modified.
</para>
<para>Custom functions are <emphasis role="bold">additional</emphasis>
functions implemented via <link linkend="plugins">plugins</link>.
- They can be modified to your liking, or you can add new ones.
+ They can be modified to your liking, or you can create new ones.
<link linkend="language.function.html.options">{html_options}</link> and
<link linkend="language.function.popup">{popup}</link>
are examples of custom functions.