diff options
author | Pieter van de Bruggen <pvande@gmail.com> | 2011-01-25 18:14:12 -0800 |
---|---|---|
committer | Pieter van de Bruggen <pvande@gmail.com> | 2011-01-25 18:17:32 -0800 |
commit | 7d96ec1c31329e9f96a1167f20ea26841fdde6bd (patch) | |
tree | 17cf9f3840c770cd53a37208111e29a4dffb40d8 | |
parent | 935ecbe6994f9c452b4832ffeaeabddef53169c1 (diff) | |
download | mustache-spec-7d96ec1c31329e9f96a1167f20ea26841fdde6bd.tar.gz |
Partial indentation should happen pre-render.
Closes #2.
-rw-r--r-- | specs/partials.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/specs/partials.yml b/specs/partials.yml index 50c1410..3b65334 100644 --- a/specs/partials.yml +++ b/specs/partials.yml @@ -37,8 +37,8 @@ tests: expected: " | >\n>\n" - name: Standalone Indentation - desc: Indentation should be prepended to each line of the partial. - data: { } + desc: Each line of the partial should be indented before rendering. + data: { content: "<\n->" } template: | \ {{>partial}} @@ -46,10 +46,13 @@ tests: partials: partial: | | + {{{content}}} | expected: | \ | + < + -> | / |