[punting] fixing whitespace in recursive partials template since mustache kinda sucks at whitespace :)

This commit is contained in:
Justin Hileman
2010-05-22 20:40:47 -04:00
parent 0893a7d39d
commit e2374d645b
3 changed files with 3 additions and 8 deletions
@@ -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