fenom/docs/tags/include.md

16 lines
645 B
Markdown
Raw Normal View History

2013-02-08 14:23:10 +04:00
Tag {include}
=============
`{include}` tags are used for including other templates in the current template. Any variables available in the current template are also available within the included template.
```smarty
{include "about.tpl"}
```
2013-02-09 10:59:08 +04:00
Переменные для подключаемого шаблона можно переопределить, задавая их аргументами тега.
2013-02-08 14:23:10 +04:00
```smarty
{include "about.tpl" page=$item limit=50}
2013-02-20 18:02:27 +04:00
```
Все изменения переменных в подключаемом шаблоне не будут воздействовать на родительский шаблон.