mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
more examples
This commit is contained in:
@@ -16,21 +16,29 @@
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
<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 *}
|
||||
<!-- A html comment that is sent to the browser -->
|
||||
{* another single line smarty comment *}
|
||||
<!-- HTML comment that is sent to the browser -->
|
||||
|
||||
{* this multiline smarty
|
||||
comment is
|
||||
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 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 -->
|
||||
{include file=$includeFile}
|
||||
|
||||
@@ -41,6 +49,9 @@
|
||||
</select>
|
||||
*}
|
||||
|
||||
{* for cvs/svn users - here's the tag for the template *}
|
||||
{* $Id$ *}
|
||||
|
||||
</body>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
Reference in New Issue
Block a user