| 1 |
<!doctype html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>{$title}</title> |
| 5 |
{* |
| 6 |
comment |
| 7 |
*} |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<h1 n:inner-if=1 title=1>My Webpage</h1> |
| 11 |
|
| 12 |
<ul n:if="count($navigation) > 0" id="navigation"> |
| 13 |
{foreach [a, b, 'x', 10] as $item} |
| 14 |
<li><a href="{$item}">{test($item->caption)}</a></li> |
| 15 |
{/foreach} |
| 16 |
</ul> |
| 17 |
|
| 18 |
{$variable} |
| 19 |
{=$variable} |
| 20 |
{XXXX::func($variable /* comment */)|filter} |
| 21 |
{$variable?->obj|filter:10, abc, 'x$var', "x$var"|filter2} |
| 22 |
|
| 23 |
{if} ... {/if true} |
| 24 |
|
| 25 |
<script> |
| 26 |
var a = {$a}, b = {'a': 1}, c = {'a': 1}; |
| 27 |
if (true) { |
| 28 |
alert(); |
| 29 |
} |
| 30 |
</script> |
| 31 |
|
| 32 |
<style> |
| 33 |
body { color: {$color} } |
| 34 |
</style> |
| 35 |
</body> |
| 36 |
</html> |