fenom/docs/tags/include.md
2013-02-09 10:59:08 +04:00

14 lines
465 B
Markdown

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"}
```
Переменные для подключаемого шаблона можно переопределить, задавая их аргументами тега.
```smarty
{include "about.tpl" page=$item limit=50}
```