2004-04-13 08:46:28 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
<!-- $Revision$ -->
|
2004-04-18 17:34:12 +00:00
|
|
|
<sect1 id="language.syntax.comments">
|
|
|
|
|
<title>Comments</title>
|
|
|
|
|
<para>
|
|
|
|
|
Template comments are surrounded by asterisks, and that is surrounded
|
2005-05-27 16:25:02 +00:00
|
|
|
by the
|
|
|
|
|
<link linkend="variable.left.delimiter"> delimiter</link>
|
2006-02-18 13:43:35 +00:00
|
|
|
tags like so: <emphasis>{* this is a comment *}</emphasis>
|
2005-05-27 16:25:02 +00:00
|
|
|
Smarty comments are NOT displayed in the final output of the template,
|
|
|
|
|
unlike <!-- HTML comments -->
|
2006-02-18 13:43:35 +00:00
|
|
|
and are useful for making internal notes in the templates.
|
2004-04-18 17:34:12 +00:00
|
|
|
</para>
|
|
|
|
|
<example>
|
|
|
|
|
<title>Comments</title>
|
|
|
|
|
<programlisting>
|
2004-04-13 08:46:28 +00:00
|
|
|
<![CDATA[
|
2005-05-27 16:25:02 +00:00
|
|
|
<body>
|
2006-03-15 00:41:59 +00:00
|
|
|
{* I am a Smarty comment, I don't exist in the compiled output *}
|
2005-09-13 19:32:43 +00:00
|
|
|
|
2006-03-15 00:41:59 +00:00
|
|
|
{* another single line smarty comment *}
|
|
|
|
|
<!-- HTML comment that is sent to the browser -->
|
2006-03-07 02:00:17 +00:00
|
|
|
|
|
|
|
|
{* this multiline smarty
|
2006-03-07 18:36:04 +00:00
|
|
|
comment is
|
2005-05-27 16:25:02 +00:00
|
|
|
not sent to browser
|
|
|
|
|
*}
|
2004-04-13 08:46:28 +00:00
|
|
|
|
2006-03-15 00:41:59 +00:00
|
|
|
{*********************************************************
|
|
|
|
|
Multi line comment block with credits block
|
|
|
|
|
@ author: bg@example.com
|
|
|
|
|
@ maintainer: support@example.com
|
|
|
|
|
@ para: var that sets block style
|
|
|
|
|
@ css: the style output
|
|
|
|
|
**********************************************************}
|
|
|
|
|
|
2006-03-07 18:36:04 +00:00
|
|
|
{* include the header file *}
|
2006-02-18 13:43:35 +00:00
|
|
|
{include file='header.tpl'}
|
2004-04-13 08:46:28 +00:00
|
|
|
|
2005-05-27 16:25:02 +00:00
|
|
|
|
2006-03-15 00:41:59 +00:00
|
|
|
{* Dev note: the $includeFile is assigned in foo.php script *}
|
2006-03-07 18:36:04 +00:00
|
|
|
<!-- Displays main content block -->
|
2004-04-13 08:46:28 +00:00
|
|
|
{include file=$includeFile}
|
|
|
|
|
|
2005-09-13 19:32:43 +00:00
|
|
|
{* this <select> block is redundant *}
|
|
|
|
|
{*
|
2004-04-13 08:46:28 +00:00
|
|
|
<select name="company">
|
2005-05-27 16:25:02 +00:00
|
|
|
{html_options options=$vals selected=$selected_id}
|
2004-04-13 08:46:28 +00:00
|
|
|
</select>
|
2005-09-13 19:32:43 +00:00
|
|
|
*}
|
2006-02-18 13:43:35 +00:00
|
|
|
|
2006-03-17 11:30:37 +00:00
|
|
|
{* cvs tag for a template *}
|
|
|
|
|
{* $Id: Exp $ *}
|
2006-03-15 00:41:59 +00:00
|
|
|
|
2005-05-27 16:25:02 +00:00
|
|
|
</body>
|
2004-04-13 08:46:28 +00:00
|
|
|
]]>
|
2004-04-18 17:34:12 +00:00
|
|
|
</programlisting>
|
|
|
|
|
</example>
|
2004-04-13 08:46:28 +00:00
|
|
|
</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
|
|
|
|
|
-->
|