Add a simple BLOCKS pragma example.
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class Blocks
|
||||||
|
{
|
||||||
|
public $items = array(1, 2, 3);
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{{% BLOCKS }}
|
||||||
|
{{< parent }}
|
||||||
|
{{$ value }}[{{ . }}]{{/ value }}
|
||||||
|
{{/ parent }}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
[1]
|
||||||
|
[2]
|
||||||
|
[3]
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{{% BLOCKS }}
|
||||||
|
{{# items }}
|
||||||
|
{{$ value }}ignored{{/ value }}
|
||||||
|
{{/ items }}
|
||||||
Reference in New Issue
Block a user