| 1 | <h2>Full example</h2> |
| 2 | <pre><code><!DOCTYPE html> |
| 3 | <html> |
| 4 | <head> |
| 5 | <title>{$title|upper}</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | {if count($menu) > 1} |
| 9 | <ul class="menu"> |
| 10 | {foreach $menu as $item} |
| 11 | <li><a href="{$item->href}">{$item->caption}</a></li> |
| 12 | {/foreach} |
| 13 | </ul> |
| 14 | {/if} |
| 15 | </body> |
| 16 | </html></code></pre> |