mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
Ctags, <g & stuff
This commit is contained in:
@@ -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}
|
||||||
|
|
||||||
<SELECT name=company>
|
<select name="company">
|
||||||
{html_options values=$vals selected=$selected output=$output}
|
{html_options values=$vals selected=$selected output=$output}
|
||||||
</SELECT></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
|
||||||
|
@@ -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 *}
|
||||||
<SELECT name=company>
|
<SELECT name=company>
|
||||||
{html_options values=$vals selected=$selected output=$output}
|
{html_options values=$vals selected=$selected output=$output}
|
||||||
</SELECT></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
|
||||||
|
@@ -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, <font color="{#fontColor#}">{$name}!</font>
|
Bienvenue, <font color="{#fontColor#}">{$name}!</font>
|
||||||
{/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
|
||||||
|
@@ -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"} <-- comprends $foo
|
{func var="test $foo test"} <-- comprends $foo
|
||||||
{func var="test $foo_bar test"} <-- comprends $foo_bar
|
{func var="test $foo_bar test"} <-- comprends $foo_bar
|
||||||
{func var="test $foo[0] test"} <-- comprends $foo[0]
|
{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[bar]
|
||||||
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
|
{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar)
|
||||||
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
|
{func var="test `$foo.bar` test"} <-- comprends $foo.bar
|
||||||
|
|
||||||
EXEMPLE PRATIQUE:
|
EXEMPLE PRATIQUE:
|
||||||
{include file="subdir/$tpl_name.tpl"} <-- 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`"} <-- 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
|
||||||
|
Reference in New Issue
Block a user