fenom/sandbox/templates/macros.tpl
2013-10-08 17:48:23 +04:00

5 lines
94 B
Smarty

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