[punting] fixing whitespace in recursive partials template since mustache kinda sucks at whitespace :)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
class RecursivePartials extends Mustache {
|
class RecursivePartials extends Mustache {
|
||||||
protected $_partials = array(
|
protected $_partials = array(
|
||||||
'child' => "* {{ name }}\n{{#child}}{{>child}}\n{{/child}}",
|
'child' => " > {{ name }}{{#child}}{{>child}}{{/child}}",
|
||||||
);
|
);
|
||||||
|
|
||||||
public $name = 'George';
|
public $name = 'George';
|
||||||
|
|||||||
@@ -1,4 +1 @@
|
|||||||
* {{name}}
|
{{name}}{{#child}}{{>child}}{{/child}}
|
||||||
{{#child}}
|
|
||||||
{{>child}}
|
|
||||||
{{/child}}
|
|
||||||
@@ -1,3 +1 @@
|
|||||||
* George
|
George > Dan > Justin
|
||||||
* Dan
|
|
||||||
* Justin
|
|
||||||
Reference in New Issue
Block a user