mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
13 lines
287 B
Smarty
13 lines
287 B
Smarty
{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} |