fenom/benchmark/sandbox/templates/macros.tpl
2013-09-02 17:40:58 +04:00

5 lines
94 B
Smarty

{macro factorial(num)}
{if $num}
{$num} {macro.factorial num=$num-1} {$num}
{/if}
{/macro}