resources/samples/smarty
//If condition
{if $name eq "smarty"}
<span>Its smarty</span>
{/elseif $name eq "php"}
<span>Its php</span>
{/else}
<span>Its neither smarty nor php</span>
{/if}
//foreach loop
{foreach $articles as $article}
<h2>{$article->title}</h2>
<p>{$article->description}</p>
{/foreach}
//section, alternative of foreach
{section name=name loop=$items}
id: {$items[name]}<br />
{/section}
//generate select option easily
{html_options values=$id output=$items selected="2"}