mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update docs
This commit is contained in:
parent
731d3fc292
commit
93f246282e
6
docs/tags/import.md
Normal file
6
docs/tags/import.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Tag {import}
|
||||||
|
============
|
||||||
|
|
||||||
|
```smarty
|
||||||
|
{import 'page.macros.tpl'}
|
||||||
|
```
|
15
docs/tags/macros.md
Normal file
15
docs/tags/macros.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Tag {macros}
|
||||||
|
============
|
||||||
|
|
||||||
|
|
||||||
|
```smarty
|
||||||
|
declare macros
|
||||||
|
|
||||||
|
{macros.paginator(current, total, skip=true)}
|
||||||
|
... paginator code ...
|
||||||
|
{/macros}
|
||||||
|
...
|
||||||
|
invoke macros
|
||||||
|
|
||||||
|
{macros.paginator current=$page total=100}
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user