Files
smarty/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml
2004-04-13 08:46:28 +00:00

48 lines
1.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.syntax.comments">
<title>Comentários</title>
<para>
Comentários de template são cercados por asteriscos, e são cercados por
delimitadores, assim: {* este é um comentário *}.
Comentários Smarty não são mostrado na saída final do template.
Eles são usados para fazer notas internas nos templates.
</para>
<example>
<title>Comentários</title>
<programlisting>
{* Smarty *}
{* inclui o arquivo header aqui *}
{include file="header.tpl"}
{include file=$includeFile}
{include file=#includeFile#}
{* Mostra listas dropdown *}
&lt;SELECT name=company&gt;
{html_options values=$vals selected=$selected output=$output}
&lt;/SELECT&gt;</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
-->