fenom/sandbox/templates/macros.tpl

5 lines
94 B
Smarty
Raw Normal View History

2013-09-02 17:40:58 +04:00
{macro factorial(num)}
{if $num}
{$num} {macro.factorial num=$num-1} {$num}
{/if}
{/macro}