mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-09 08:41:39 +01:00
Minor formatting and error correction
This commit is contained in:
@@ -6,10 +6,19 @@
|
||||
Template comments are surrounded by asterisks, and that is surrounded
|
||||
by the
|
||||
<link linkend="variable.left.delimiter">delimiter</link>
|
||||
tags like so: <literal>{* this is a comment *}</literal>
|
||||
tags like so:
|
||||
</para>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* this is a comment *}
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
<para>
|
||||
Smarty comments are NOT displayed in the final output of the template,
|
||||
unlike <literal><!-- HTML comments --></literal>
|
||||
these are useful for making internal notes in the templates which no one will see ;-)
|
||||
unlike <literal><!-- HTML comments --></literal>.
|
||||
These are useful for making internal notes in the templates which no one will see ;-)
|
||||
</para>
|
||||
<example>
|
||||
<title>Comments within a template</title>
|
||||
@@ -53,6 +62,18 @@ Multi line comment block with credits block
|
||||
</select>
|
||||
*}
|
||||
|
||||
<!-- Show header from affiliate is disabled -->
|
||||
{* $affiliate|upper *}
|
||||
|
||||
{* you cannot nest comments *}
|
||||
{*
|
||||
<select name="company">
|
||||
{* <option value="0">-- none -- </option> *}
|
||||
{html_options options=$vals selected=$selected_id}
|
||||
</select>
|
||||
*}
|
||||
|
||||
|
||||
{* cvs tag for a template, below the 36 SHOULD be an american currency
|
||||
. however its converted in cvs.. *}
|
||||
{* $Id: Exp $ *}
|
||||
|
||||
Reference in New Issue
Block a user