mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
754 B
754 B
Tag {extends}
Тег {extends} реализует наследование шаблонов
{extends}
{extends 'parent.tpl'}
{extends $parent_tpl}
{if $theme?}
{extends $theme.template}
{/if}
{block}
{block bk1}content 1{/block}
{block 'bk2'}content 2{/block}
{block "bk{$number}"}content {$number}{/block}
{if $condition}
{block "bk-if"}content, then 'if' is true{/block}
{else}
{block "bk{$fail}"}content, then 'if' is false{/block}
{/if}
{use}
{use 'blocks.tpl'}
{if $theme.extended?}
{use $theme.extended}
{/if}
{parent}
{block 'block1'}
content ...
{parent}
content ...
{/block}