From 0d599cb211b1cc31c5577453aa28ad366ab530a3 Mon Sep 17 00:00:00 2001 From: Xesau Date: Tue, 5 Jul 2016 20:10:23 +0200 Subject: [PATCH] Translated one sentence from Russian to English... and added documentation for {parent} --- docs/en/tags/extends.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en/tags/extends.md b/docs/en/tags/extends.md index 54310b9..e2ae8af 100644 --- a/docs/en/tags/extends.md +++ b/docs/en/tags/extends.md @@ -19,7 +19,7 @@ Also if a child template extends a parent template with the `{extends}` tag it m ### {use} -Что бы импортировать блоки из другого шаблона используйте тег {use}: +Import the blocks defined in another file. Specifying blocks in this template will override those from the other file. ```smarty {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} +Uses the code from the block as defined in the parent. + ```smarty {extends 'parent.tpl'} @@ -43,7 +45,7 @@ Also if a child template extends a parent template with the `{extends}` tag it m ### {paste} -Paste code of any block +Pastes the code of any block ```smarty {block 'b1'} @@ -65,4 +67,4 @@ Checks if clock exists {if $.block.header} block header exists {/if} -``` \ No newline at end of file +```