summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2011-01-25 18:14:12 -0800
committerPieter van de Bruggen <pvande@gmail.com>2011-01-25 18:17:32 -0800
commit7d96ec1c31329e9f96a1167f20ea26841fdde6bd (patch)
tree17cf9f3840c770cd53a37208111e29a4dffb40d8
parent935ecbe6994f9c452b4832ffeaeabddef53169c1 (diff)
downloadmustache-spec-7d96ec1c31329e9f96a1167f20ea26841fdde6bd.tar.gz
Partial indentation should happen pre-render.
Closes #2.
-rw-r--r--specs/partials.yml7
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: |
\
|
+ <
+ ->
|
/