Files
smarty/docs/es/designers/language-basic-syntax/language-syntax-attributes.xml
2004-10-07 18:50:52 +00:00

59 lines
1.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.syntax.attributes">
<title>Atributos</title>
<para>
La mayoria de las funciones llevan atributos que especifican o
cambian su funcionamiento. Los atributos para las funciones de
Smarty son muy parecidos a los atributos de HTML. Los valores
estaticos no necesitan estar entre comillas, pero si es recomendado
para cadenas y literales. Las variables también pueden ser usadas
y no precisamente estando entre comillas.
</para>
<para>
Algunos atributos requieren valores boleanos(true o false).
Estos pueden ser especificados como cualquier otro valor sin comillas
<literal>true</literal>, <literal>on</literal>, y
<literal>yes</literal>, o <literal>false</literal>,
<literal>off</literal>, y <literal>no</literal>.
</para>
<example>
<title>Sintaxis de atributos de Funciones</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
-->