mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
more examples
This commit is contained in:
@@ -16,21 +16,29 @@
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<body>
|
<body>
|
||||||
{* I am a smarty comment, I dont exist in the compiled output *}
|
{* I am a Smarty comment, I don't exist in the compiled output *}
|
||||||
|
|
||||||
{* another single smarty line comment *}
|
{* another single line smarty comment *}
|
||||||
<!-- A html comment that is sent to the browser -->
|
<!-- HTML comment that is sent to the browser -->
|
||||||
|
|
||||||
{* this multiline smarty
|
{* this multiline smarty
|
||||||
comment is
|
comment is
|
||||||
not sent to browser
|
not sent to browser
|
||||||
*}
|
*}
|
||||||
|
|
||||||
|
{*********************************************************
|
||||||
|
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
|
||||||
|
**********************************************************}
|
||||||
|
|
||||||
{* include the header file *}
|
{* include the header file *}
|
||||||
{include file='header.tpl'}
|
{include file='header.tpl'}
|
||||||
|
|
||||||
|
|
||||||
{* Dev note: $includeFile is assigned in foo.php script *}
|
{* Dev note: the $includeFile is assigned in foo.php script *}
|
||||||
<!-- Displays main content block -->
|
<!-- Displays main content block -->
|
||||||
{include file=$includeFile}
|
{include file=$includeFile}
|
||||||
|
|
||||||
@@ -41,6 +49,9 @@
|
|||||||
</select>
|
</select>
|
||||||
*}
|
*}
|
||||||
|
|
||||||
|
{* for cvs/svn users - here's the tag for the template *}
|
||||||
|
{* $Id$ *}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Reference in New Issue
Block a user