fenom/sandbox/templates/extends/75-parent.tpl
2014-04-10 01:49:15 +04:00

12 lines
227 B
Smarty

{macro parent_test(v, i)}
parent test - {$v}, i = {$i};<br/>
{var $i = $i -1}
{if $i > 0}
{macro.parent_test v=$v i=$i}
{/if}
{/macro}
{block 'child'}{/block}
parent call:<br/>
{macro.parent_test v = 'ok' i = 5} <br/>