Added [currently failing] test case for recursive partials.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user