Added [currently failing] test case for recursive partials.

This commit is contained in:
Justin Hileman
2010-05-22 19:25:27 -04:00
parent 7f5f7a73fc
commit dff5300932
3 changed files with 22 additions and 0 deletions
@@ -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