1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
<ul>
<li>lower: {$hello |lower}</li>
<li>upper: {$hello |upper}</li>
<li>lower & capitalize: {$hello |lower|capitalize}</li>
<li>nl2br: {$hello |nl2br}</li>
<li>truncate: {$hello |truncate:"10 "|lower}</li>
<li>date: {$date|date:'%d.%m.%Y %H:%M:%S'}</li>
<li>translated: {_$hello|truncate:3}</li>
<li>Translated HTML: {_}ahoj{/_}</li>
<li>Translated HTML: {_}ahoj{/}</li>
<li>Translated HTML: {_'ahoj|ahojahojahojahoj'}</li>
<li>spaces: {$hello |types , '' , "" , "$hello" }</li>
<li>dynamic: {$hello |dynamic} {$hello |dynamic2}</li>
</ul>
<ul>
<li>{$hello |h1|h2}</li>
<li>{$hello |h1|h2|noescape}</li>
<li>{$hello |h2|h1}</li>
<li>{$hello |noescape|h2|h1}</li>
</ul>
<ul>
<li>{$hello*0 |types:0,0.0,"0"}</li>
<li>{$hello*1 |types:1:"1"}</li>
<li>{$hello |types:true,null,false}</li>
<li>{$hello |types:TRUE,NULL,FALSE}</li>
<li>{$hello |types:'',"","$hello"}</li>
</ul>
{block |strip} <a href="#"
> test</a
>
AŠA
<script>
// comment
alert();
</script>
{/block}
{capture$capture}
<ul>
<li>lower: {$hello |lower}</li>
</ul>
{/capture}
<p>
Captured: {$capture}
</p>
{capture$capture|upper}
Hello
{/capture}
<p>
Captured with modifier: {$capture}
</p>
<p>
Nested blocks: {block|truncate:20} Outer {block|upper} Inner Block {/block} Block {/block}
</p>
|