fenom/sandbox/templates/extends/75-child.tpl

13 lines
287 B
Smarty
Raw Normal View History

2014-04-10 01:49:15 +04:00
{extends 'extends/75-parent.tpl'}
{block 'child'}
{macro child_test(v, i)}
child test - {$v}, i = {$i};<br/>
{var $i = $i -1}
{if $i > 0}
{macro.child_test v=$v i=$i}
{/if}
{/macro}
child call: <br/>
{macro.child_test v = 'ok' i = 5}
{/block}