2000-12-04 21:48:51 +00:00
|
|
|
{config_load file=test.conf section="my foo"}
|
2000-12-27 19:58:05 +00:00
|
|
|
{include file=header.tpl title=foo}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2001-01-18 20:41:43 +00:00
|
|
|
<PRE>
|
|
|
|
|
|
2000-11-20 22:31:38 +00:00
|
|
|
Title: {#title#|capitalize}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2001-01-18 20:41:43 +00:00
|
|
|
|
|
|
|
|
the value of $SCRIPT_NAME is {$SCRIPT_NAME}
|
2000-11-22 16:23:19 +00:00
|
|
|
|
2000-11-15 17:11:52 +00:00
|
|
|
{* A simple variable test *}
|
2000-12-04 21:48:51 +00:00
|
|
|
hello, my name is {$Name|upper}
|
2000-11-20 20:06:06 +00:00
|
|
|
|
2000-11-20 03:20:55 +00:00
|
|
|
My interests are:
|
|
|
|
|
{section name=outer loop=$FirstName}
|
2000-11-20 20:06:06 +00:00
|
|
|
{if %outer.index% is odd by 2}
|
2001-01-16 15:50:30 +00:00
|
|
|
{%outer.rownum%} . {$outer/FirstName} {$outer/LastName}
|
2000-11-20 03:20:55 +00:00
|
|
|
{else}
|
2001-01-16 15:50:30 +00:00
|
|
|
{%outer.rownum%} * {$outer/FirstName} {$outer/LastName}
|
2000-11-20 03:20:55 +00:00
|
|
|
{/if}
|
|
|
|
|
{sectionelse}
|
|
|
|
|
none
|
|
|
|
|
{/section}
|
2000-11-21 20:29:55 +00:00
|
|
|
|
2001-01-02 14:51:02 +00:00
|
|
|
({$FirstName|@count})
|
2001-01-02 20:04:46 +00:00
|
|
|
|
2001-01-02 21:52:38 +00:00
|
|
|
{insert name=paginate}
|
2001-01-04 21:39:51 +00:00
|
|
|
|
|
|
|
|
testing strip tags
|
|
|
|
|
{strip}
|
|
|
|
|
<table border=0>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<A HREF="{$url}">
|
|
|
|
|
<font color="red">This is a test </font>
|
|
|
|
|
</A>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
{/strip}
|
2001-01-18 20:41:43 +00:00
|
|
|
|
|
|
|
|
</PRE>
|