diff options
Diffstat (limited to 'specs/partials.yml')
-rw-r--r-- | specs/partials.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/specs/partials.yml b/specs/partials.yml index e24ca56..d688bd6 100644 --- a/specs/partials.yml +++ b/specs/partials.yml @@ -7,7 +7,8 @@ overview: | This tag's content names the partial to inject. Set Delimiter tags MUST NOT affect the parsing of a partial. The partial MUST be rendered against the - context stack local to the tag. + context stack local to the tag. If the named partial cannot be found, the + empty string SHOULD be used instead, as in interpolations. Partial tags SHOULD be treated as standalone when appropriate. If this tag is used standalone, any whitespace preceding the tag should treated as @@ -20,6 +21,13 @@ tests: partials: { text: 'from partial' } expected: '"from partial"' + - name: Failed Lookup + desc: The empty string should be used when the named partial is not found. + data: { } + template: '"{{>text}}"' + partials: { } + expected: '"from partial"' + - name: Context desc: The greater-than operator should operate within the current context. data: { text: 'content' } |