Files
smarty/demo/templates/index.tpl

18 lines
320 B
Smarty
Raw Normal View History

2000-11-20 20:06:06 +00:00
{config_load file=test.conf}
Title: {#title#}
2000-11-15 17:11:52 +00:00
{* A simple variable test *}
2000-11-20 20:06:06 +00:00
hello, my name is {$Name}.
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}
2000-11-20 03:20:55 +00:00
. {$outer/FirstName} {$outer/LastName}
{else}
* {$outer/FirstName} {$outer/LastName}
{/if}
{sectionelse}
none
{/section}