mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 13:21:36 +01:00
55 lines
1.3 KiB
XML
55 lines
1.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
|
<sect1 id="language.syntax.comments">
|
|
<title>Commentaires</title>
|
|
<para>
|
|
Les commentaires dans Smarty sont entourés d'asterisques, de cette
|
|
façon : {* voici un commentaire *}
|
|
Les commentaires Smarty ne sont pas affichés dans la sortie finale du
|
|
template.
|
|
Ils sont utilisés pour des notes internes, dans le template, pour aider
|
|
les développeurs à en comprendre le fonctionnement.
|
|
</para>
|
|
<example>
|
|
<title>Commentaires</title>
|
|
<programlisting>
|
|
<![CDATA[
|
|
{* Smarty *}
|
|
|
|
{* Inclusion de l'en tête *}
|
|
{include file="header.tpl"}
|
|
|
|
{include file=$includeFile}
|
|
|
|
{include file=#includeFile#}
|
|
|
|
{* affiche des listes déroulantes *}
|
|
<SELECT name=company>
|
|
{html_options values=$vals selected=$selected output=$output}
|
|
</SELECT>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</sect1>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|