mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Translated one sentence from Russian to English...
and added documentation for {parent}
This commit is contained in:
parent
f160664f0e
commit
0d599cb211
@ -19,7 +19,7 @@ Also if a child template extends a parent template with the `{extends}` tag it m
|
|||||||
|
|
||||||
### {use}
|
### {use}
|
||||||
|
|
||||||
Что бы импортировать блоки из другого шаблона используйте тег {use}:
|
Import the blocks defined in another file. Specifying blocks in this template will override those from the other file.
|
||||||
|
|
||||||
```smarty
|
```smarty
|
||||||
{use 'blocks.tpl'} merge blocks from blocks.tpl template
|
{use 'blocks.tpl'} merge blocks from blocks.tpl template
|
||||||
@ -31,6 +31,8 @@ Also if a child template extends a parent template with the `{extends}` tag it m
|
|||||||
|
|
||||||
### {parent}
|
### {parent}
|
||||||
|
|
||||||
|
Uses the code from the block as defined in the parent.
|
||||||
|
|
||||||
```smarty
|
```smarty
|
||||||
{extends 'parent.tpl'}
|
{extends 'parent.tpl'}
|
||||||
|
|
||||||
@ -43,7 +45,7 @@ Also if a child template extends a parent template with the `{extends}` tag it m
|
|||||||
|
|
||||||
### {paste}
|
### {paste}
|
||||||
|
|
||||||
Paste code of any block
|
Pastes the code of any block
|
||||||
|
|
||||||
```smarty
|
```smarty
|
||||||
{block 'b1'}
|
{block 'b1'}
|
||||||
|
Loading…
Reference in New Issue
Block a user