diff options
Diffstat (limited to 'specs/partials.yml')
-rw-r--r-- | specs/partials.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/specs/partials.yml b/specs/partials.yml index e460fbb..e24ca56 100644 --- a/specs/partials.yml +++ b/specs/partials.yml @@ -57,6 +57,20 @@ tests: partials: { partial: ">" } expected: "|\r\n>|" + - name: Standalone Without Previous Line + desc: Standalone tags should not require a newline to precede them. + data: { } + template: " {{>partial}}\n>" + partials: { partial: ">\n>"} + expected: " >\n >>" + + - name: Standalone Without Newline + desc: Standalone tags should not require a newline to follow them. + data: { } + template: ">\n {{>partial}}" + partials: { partial: ">\n>" } + expected: ">\n >\n >" + - name: Standalone Indentation desc: Each line of the partial should be indented before rendering. data: { content: "<\n->" } |