@@ -0,0 +1,15 @@
+<?php
+
+class RecursivePartials extends Mustache {
+ protected $_partials = array(
+ 'child' => "* {{ name }}",
+ );
+ public $name = 'George';
+ public $child = array(
+ 'name' => 'Dan',
+ 'child' => array(
+ 'name' => 'Justin',
+ )
+}
@@ -0,0 +1,4 @@
+* {{name}}
+{{#child}}
+{{>child}}
+{{/child}}
@@ -0,0 +1,3 @@
+* George
+* Dan
+* Justin