Ctags, &ltg & stuff

This commit is contained in:
gerald
2004-07-02 19:49:32 +00:00
parent ca16044694
commit 64bdf442c5
4 changed files with 31 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.attributes">
<title>Param<EFBFBD>tres</title>
<para>
@@ -20,6 +20,7 @@
<example>
<title>Param<EFBFBD>tres de fonction, syntaxe</title>
<programlisting>
<![CDATA[
{include file="header.tpl"}
{include file=$includeFile}
@@ -28,9 +29,11 @@
{html_select_date display_days=yes}
&lt;SELECT name=company&gt;
<select name="company">
{html_options values=$vals selected=$selected output=$output}
&lt;/SELECT&gt;</programlisting>
</select>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.comments">
<title>Commentaires</title>
<para>
@@ -14,6 +14,7 @@
<example>
<title>Commentaires</title>
<programlisting>
<![CDATA[
{* Smarty *}
{* Inclusion de l'en t<>te *}
@@ -24,9 +25,11 @@
{include file=#includeFile#}
{* affiche des listes d<>roulantes *}
&lt;SELECT name=company&gt;
<SELECT name=company>
{html_options values=$vals selected=$selected output=$output}
&lt;/SELECT&gt;</programlisting>
</SELECT>
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.functions">
<title>Fonctions</title>
<para>
@@ -12,6 +12,8 @@
<example>
<title>syntaxe des fonctions</title>
<programlisting>
<![CDATA[
{config_load file="colors.conf"}
{include file="header.tpl"}
@@ -22,7 +24,9 @@
Bienvenue, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt;
{/if}
{include file="footer.tpl"}</programlisting>
{include file="footer.tpl"}
]]>
</programlisting>
</example>
<para>
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.quotes">
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
<para>
@@ -13,18 +13,21 @@
<example>
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
<programlisting>
<![CDATA[
EXEMPLE DE SYNTAXE:
{func var="test $foo test"} &lt;-- comprends $foo
{func var="test $foo_bar test"} &lt;-- comprends $foo_bar
{func var="test $foo[0] test"} &lt;-- comprends $foo[0]
{func var="test $foo[bar] test"} &lt;-- comprends $foo[bar]
{func var="test $foo.bar test"} &lt;-- comprends $foo (not $foo.bar)
{func var="test `$foo.bar` test"} &lt;-- comprends $foo.bar
{func var="test $foo test"} <-- comprends $foo
{func var="test $foo_bar test"} <-- comprends $foo_bar
{func var="test $foo[0] test"} <-- comprends $foo[0]
{func var="test $foo[bar] test"} <-- comprends $foo[bar]
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
EXEMPLE PRATIQUE:
{include file="subdir/$tpl_name.tpl"} &lt;-- remplace $tpl_name avec la valeur
{cycle values="one,two,`$smarty.config.myval`"} &lt;-- doit comporter les
apostrophes inverses</programlisting>
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
apostrophes inverses
]]>
</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file