From 44b60e1bb8d8dfe79d0f09a3e3c0633b0eb57b18 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Thu, 26 Sep 2013 09:48:29 -0700 Subject: [PATCH] Add a failing test for #167 Multiple levels of nested partials are only indented to the level of the first partial. --- test/fixtures/examples/nested_partials/NestedPartials.php | 6 ++++++ .../examples/nested_partials/nested_partials.mustache | 3 +++ test/fixtures/examples/nested_partials/nested_partials.txt | 7 +++++++ .../examples/nested_partials/partials/fourth.mustache | 1 + .../examples/nested_partials/partials/second.mustache | 3 +++ .../examples/nested_partials/partials/third.mustache | 3 +++ 6 files changed, 23 insertions(+) create mode 100644 test/fixtures/examples/nested_partials/NestedPartials.php create mode 100644 test/fixtures/examples/nested_partials/nested_partials.mustache create mode 100644 test/fixtures/examples/nested_partials/nested_partials.txt create mode 100644 test/fixtures/examples/nested_partials/partials/fourth.mustache create mode 100644 test/fixtures/examples/nested_partials/partials/second.mustache create mode 100644 test/fixtures/examples/nested_partials/partials/third.mustache diff --git a/test/fixtures/examples/nested_partials/NestedPartials.php b/test/fixtures/examples/nested_partials/NestedPartials.php new file mode 100644 index 0000000..632639e --- /dev/null +++ b/test/fixtures/examples/nested_partials/NestedPartials.php @@ -0,0 +1,6 @@ + + {{> second }} + \ No newline at end of file diff --git a/test/fixtures/examples/nested_partials/nested_partials.txt b/test/fixtures/examples/nested_partials/nested_partials.txt new file mode 100644 index 0000000..62776f9 --- /dev/null +++ b/test/fixtures/examples/nested_partials/nested_partials.txt @@ -0,0 +1,7 @@ + + + + FOURTH! + + + \ No newline at end of file diff --git a/test/fixtures/examples/nested_partials/partials/fourth.mustache b/test/fixtures/examples/nested_partials/partials/fourth.mustache new file mode 100644 index 0000000..727676f --- /dev/null +++ b/test/fixtures/examples/nested_partials/partials/fourth.mustache @@ -0,0 +1 @@ +{{ val }} diff --git a/test/fixtures/examples/nested_partials/partials/second.mustache b/test/fixtures/examples/nested_partials/partials/second.mustache new file mode 100644 index 0000000..83f33cf --- /dev/null +++ b/test/fixtures/examples/nested_partials/partials/second.mustache @@ -0,0 +1,3 @@ + + {{> third }} + diff --git a/test/fixtures/examples/nested_partials/partials/third.mustache b/test/fixtures/examples/nested_partials/partials/third.mustache new file mode 100644 index 0000000..f33301a --- /dev/null +++ b/test/fixtures/examples/nested_partials/partials/third.mustache @@ -0,0 +1,3 @@ + + {{> fourth }} +