mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
20 lines
281 B
Markdown
20 lines
281 B
Markdown
Tag {macro}
|
|
============
|
|
|
|
Declare
|
|
|
|
```smarty
|
|
declare macros
|
|
|
|
{macro paginator(current, total, skip=true)}
|
|
... paginator code ...
|
|
{/macro}
|
|
```
|
|
|
|
Invoke
|
|
|
|
```smarty
|
|
{paginator current=$page total=100}
|
|
```
|
|
|
|
Use tag [{import}](./import.md) for extending macros for another templates. |