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

View File

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

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.functions"> <sect1 id="language.syntax.functions">
<title>Fonctions</title> <title>Fonctions</title>
<para> <para>
@@ -12,6 +12,8 @@
<example> <example>
<title>syntaxe des fonctions</title> <title>syntaxe des fonctions</title>
<programlisting> <programlisting>
<![CDATA[
{config_load file="colors.conf"} {config_load file="colors.conf"}
{include file="header.tpl"} {include file="header.tpl"}
@@ -22,7 +24,9 @@
Bienvenue, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt; Bienvenue, &lt;font color="{#fontColor#}"&gt;{$name}!&lt;/font&gt;
{/if} {/if}
{include file="footer.tpl"}</programlisting> {include file="footer.tpl"}
]]>
</programlisting>
</example> </example>
<para> <para>
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me 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"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ --> <!-- $Revision$ -->
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.syntax.quotes"> <sect1 id="language.syntax.quotes">
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title> <title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
<para> <para>
@@ -13,18 +13,21 @@
<example> <example>
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title> <title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
<programlisting> <programlisting>
<![CDATA[
EXEMPLE DE SYNTAXE: EXEMPLE DE SYNTAXE:
{func var="test $foo test"} &lt;-- comprends $foo {func var="test $foo test"} <-- comprends $foo
{func var="test $foo_bar test"} &lt;-- comprends $foo_bar {func var="test $foo_bar test"} <-- comprends $foo_bar
{func var="test $foo[0] test"} &lt;-- comprends $foo[0] {func var="test $foo[0] test"} <-- comprends $foo[0]
{func var="test $foo[bar] test"} &lt;-- comprends $foo[bar] {func var="test $foo[bar] test"} <-- comprends $foo[bar]
{func var="test $foo.bar test"} &lt;-- comprends $foo (not $foo.bar) {func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
{func var="test `$foo.bar` test"} &lt;-- comprends $foo.bar {func var="test `$foo.bar` test"} <-- comprends $foo.bar
EXEMPLE PRATIQUE: EXEMPLE PRATIQUE:
{include file="subdir/$tpl_name.tpl"} &lt;-- remplace $tpl_name avec la valeur {include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
{cycle values="one,two,`$smarty.config.myval`"} &lt;-- doit comporter les {cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
apostrophes inverses</programlisting> apostrophes inverses
]]>
</programlisting>
</example> </example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file