[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 {
|
||||
protected $_partials = array(
|
||||
'child' => "* {{ name }}\n{{#child}}{{>child}}\n{{/child}}",
|
||||
'child' => " > {{ name }}{{#child}}{{>child}}{{/child}}",
|
||||
);
|
||||
|
||||
public $name = 'George';
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
* {{name}}
|
||||
{{#child}}
|
||||
{{>child}}
|
||||
{{/child}}
|
||||
{{name}}{{#child}}{{>child}}{{/child}}
|
||||
@@ -1,3 +1 @@
|
||||
* George
|
||||
* Dan
|
||||
* Justin
|
||||
George > Dan > Justin
|
||||
Reference in New Issue
Block a user