Explorar o código

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

Justin Hileman %!s(int64=15) %!d(string=hai) anos
pai
achega
e2374d645b

+ 1 - 1
examples/recursive_partials/RecursivePartials.php

@@ -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
examples/recursive_partials/recursive_partials.mustache

@@ -1,4 +1 @@
-* {{name}}
-{{#child}}
-{{>child}}
-{{/child}}
+{{name}}{{#child}}{{>child}}{{/child}}

+ 1 - 3
examples/recursive_partials/recursive_partials.txt

@@ -1,3 +1 @@
-* George
-* Dan
-* Justin
+George > Dan > Justin