瀏覽代碼

Add a failing test for #167

Multiple levels of nested partials are only indented to the level of the first partial.
Justin Hileman 12 年之前
父節點
當前提交
44b60e1bb8

+ 6 - 0
test/fixtures/examples/nested_partials/NestedPartials.php

@@ -0,0 +1,6 @@
+<?php
+
+class NestedPartials
+{
+    public $val = 'FOURTH!';
+}

+ 3 - 0
test/fixtures/examples/nested_partials/nested_partials.mustache

@@ -0,0 +1,3 @@
+<first>
+  {{> second }}
+</first>

+ 7 - 0
test/fixtures/examples/nested_partials/nested_partials.txt

@@ -0,0 +1,7 @@
+<first>
+  <second>
+    <third>
+      FOURTH!
+    </third>
+  </second>
+</first>

+ 1 - 0
test/fixtures/examples/nested_partials/partials/fourth.mustache

@@ -0,0 +1 @@
+{{ val }}

+ 3 - 0
test/fixtures/examples/nested_partials/partials/second.mustache

@@ -0,0 +1,3 @@
+<second>
+  {{> third }}
+</second>

+ 3 - 0
test/fixtures/examples/nested_partials/partials/third.mustache

@@ -0,0 +1,3 @@
+<third>
+  {{> fourth }}
+</third>