mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
260 B
260 B
Tag {macro}
Declare macro
{macro plus(x, y, z=0)}
x + y + z = {$x + $y + $z}
{/macro}
Invoke macro
{macro.plus x=$num y=100}
Use tag {import} for importing existing macroses into another template