mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
5 lines
94 B
Smarty
5 lines
94 B
Smarty
|
{macro factorial(num)}
|
||
|
{if $num}
|
||
|
{$num} {macro.factorial num=$num-1} {$num}
|
||
|
{/if}
|
||
|
{/macro}
|