Files
smarty/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml

59 lines
1.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.syntax.attributes">
<title>Attributi</title>
<para>
La maggior parte delle funzioni accetta attributi che specificano
o modificano il loro comportamento. Gli attributi delle funzioni
Smarty assomigliano agli attributi HTML. I valori statici non hanno
bisogno di essere racchiusi fra virgolette, ma è raccomandato farlo
per le stringhe. Possono essere usate anche variabili, che non devno
essere fra virgolette.
</para>
<para>
Alcuni attributi richiedono valori booleani (vero o falso). Per
specificarli si possono usare i seguenti valori, senza virgolette:
<literal>true</literal>, <literal>on</literal>, e <literal>yes</literal>,
oppure <literal>false</literal>, <literal>off</literal>, e
<literal>no</literal>.
</para>
<example>
<title>sintassi per gli attributi delle funzioni</title>
<programlisting>
<![CDATA[
{include file="header.tpl"}
{include file=$includeFile}
{include file=#includeFile#}
{html_select_date display_days=yes}
<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
-->