fenom/docs/tags/import.md

16 lines
181 B
Markdown
Raw Normal View History

2013-02-20 17:57:52 +04:00
Tag {import}
============
2013-02-22 00:05:20 +04:00
Import [macro](./macro.md) from another template
2013-02-20 17:57:52 +04:00
```smarty
2013-02-23 13:29:20 +04:00
{import 'math.tpl'}
2013-02-21 22:47:24 +04:00
```
```smarty
2013-02-23 13:29:20 +04:00
{import 'math.tpl' as math}
2013-02-21 22:47:24 +04:00
...
2013-02-23 13:29:20 +04:00
{math.plus x=5 y=100}
2013-02-21 22:47:24 +04:00
```