| 1 {"__ATTN__":"Do not edit this file; changes belong in the appropriate YAML file.
","overview":"Partial tags are used to expand an external template into the curr
ent\ntemplate.\n\nThe tag's content MUST be a non-whitespace character sequence
NOT containing\nthe current closing delimiter.\n\nThis tag's content names the p
artial to inject. Set Delimiter tags MUST NOT\naffect the parsing of a partial.
The partial MUST be rendered against the\ncontext stack local to the tag. If
the named partial cannot be found, the\nempty string SHOULD be used instead, as
in interpolations.\n\nPartial tags SHOULD be treated as standalone when appropri
ate. If this tag\nis used standalone, any whitespace preceding the tag should t
reated as\nindentation, and prepended to each line of the partial before renderi
ng.\n","tests":[{"name":"Basic Behavior","data":{},"expected":"\"from partial\""
,"template":"\"{{>text}}\"","desc":"The greater-than operator should expand to t
he named partial.","partials":{"text":"from partial"}},{"name":"Failed Lookup","
data":{},"expected":"\"\"","template":"\"{{>text}}\"","desc":"The empty string s
hould be used when the named partial is not found.","partials":{}},{"name":"Cont
ext","data":{"text":"content"},"expected":"\"*content*\"","template":"\"{{>parti
al}}\"","desc":"The greater-than operator should operate within the current cont
ext.","partials":{"partial":"*{{text}}*"}},{"name":"Recursion","data":{"content"
:"X","nodes":[{"content":"Y","nodes":[]}]},"expected":"X<Y<>>","template":"{{>no
de}}","desc":"The greater-than operator should properly recurse.","partials":{"n
ode":"{{content}}<{{#nodes}}{{>node}}{{/nodes}}>"}},{"name":"Surrounding Whitesp
ace","data":{},"expected":"| \t|\t |","template":"| {{>partial}} |","desc":"The
greater-than operator should not alter surrounding whitespace.","partials":{"par
tial":"\t|\t"}},{"name":"Inline Indentation","data":{"data":"|"},"expected":" |
>\n>\n","template":" {{data}} {{> partial}}\n","desc":"Whitespace should be
left untouched.","partials":{"partial":">\n>"}},{"name":"Standalone Line Endings
","data":{},"expected":"|\r\n>|","template":"|\r\n{{>partial}}\r\n|","desc":"\"\
\r\\n\" should be considered a newline for standalone tags.","partials":{"partia
l":">"}},{"name":"Standalone Without Previous Line","data":{},"expected":" >\n
>>","template":" {{>partial}}\n>","desc":"Standalone tags should not require a
newline to precede them.","partials":{"partial":">\n>"}},{"name":"Standalone Wi
thout Newline","data":{},"expected":">\n >\n >","template":">\n {{>partial}}"
,"desc":"Standalone tags should not require a newline to follow them.","partials
":{"partial":">\n>"}},{"name":"Standalone Indentation","data":{"content":"<\n->"
},"expected":"\\\n |\n <\n->\n |\n/\n","template":"\\\n {{>partial}}\n/\n","desc
":"Each line of the partial should be indented before rendering.","partials":{"p
artial":"|\n{{{content}}}\n|\n"}},{"name":"Padding Whitespace","data":{"boolean"
:true},"expected":"|[]|","template":"|{{> partial }}|","desc":"Superfluous in-ta
g whitespace should be ignored.","partials":{"partial":"[]"}}]} |