Эх сурвалжийг харах

Update SectionSpaces class name to work with template autoloading, changing .txt to desired (not actual) output so the test will fail.

Justin Hileman 15 жил өмнө
parent
commit
ad6e15e5b5

+ 1 - 1
examples/sections_spaces/Sections_Spaces.php → examples/sections_spaces/SectionsSpaces.php

@@ -1,6 +1,6 @@
 <?php
 
-class Sections_Spaces extends Mustache {
+class SectionsSpaces extends Mustache {
 	public $start = "It worked the first time.";
 
 	public function middle() {

+ 2 - 2
examples/sections_spaces/sections_spaces.mustache

@@ -2,8 +2,8 @@
 {{# middle }}
  * {{ item }}
 {{/ middle }}
-* {{ final }}
+ * {{ final }}
 
  * {{ start }}
 {{# middle }} * {{ item }}{{/ middle }}
-* {{ final }}
+ * {{ final }}

+ 4 - 3
examples/sections_spaces/sections_spaces.txt

@@ -1,8 +1,9 @@
  * It worked the first time.
  * And it worked the second time.
  * As well as the third.
-* Then, surprisingly, it worked the final time.
+ * Then, surprisingly, it worked the final time.
 
  * It worked the first time.
- * And it worked the second time. * As well as the third.
-* Then, surprisingly, it worked the final time.
+ * And it worked the second time.
+ * As well as the third.
+ * Then, surprisingly, it worked the final time.