Add a simple BLOCKS pragma example.

This commit is contained in:
Justin Hileman
2015-08-15 09:38:32 -07:00
parent 8be838e144
commit 664895f4b9
4 changed files with 17 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
<?php
class Blocks
{
public $items = array(1, 2, 3);
}
+4
View File
@@ -0,0 +1,4 @@
{{% BLOCKS }}
{{< parent }}
{{$ value }}[{{ . }}]{{/ value }}
{{/ parent }}
+3
View File
@@ -0,0 +1,3 @@
[1]
[2]
[3]
@@ -0,0 +1,4 @@
{{% BLOCKS }}
{{# items }}
{{$ value }}ignored{{/ value }}
{{/ items }}