mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Dev, dev and dev. Also, docs, docs and docs.
This commit is contained in:
4
tests/resources/template/child1.tpl
Normal file
4
tests/resources/template/child1.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{extends "parent.tpl"}
|
||||
{block blk1}
|
||||
<b>blk1.{$a}</b>
|
||||
{/block}
|
||||
4
tests/resources/template/child2.tpl
Normal file
4
tests/resources/template/child2.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{extends "parent.tpl"}
|
||||
{block blk2}
|
||||
<b>blk2.{$a}</b>
|
||||
{/block}
|
||||
9
tests/resources/template/child3.tpl
Normal file
9
tests/resources/template/child3.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
{extends "parent.tpl"}
|
||||
|
||||
{block blk1}
|
||||
<b>blk1.{$a} (rewrited)</b>
|
||||
{/block}
|
||||
|
||||
{block blk3}
|
||||
<b>blk3.{$a}</b>
|
||||
{/block}
|
||||
4
tests/resources/template/parent.tpl
Normal file
4
tests/resources/template/parent.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
Parent template
|
||||
Block1: {block blk1}{/block}
|
||||
Block2: {block blk2}{/block}
|
||||
Block3: {block blk3}default{/block}
|
||||
Reference in New Issue
Block a user