can-view-nodelist
Adds nesting of text nodes
can.view.nodeLists
are used to make sure "directly nested" live-binding
sections update content correctly.
Consider the following template:
<div>
{{#if items.length}}
Items:
{{#items}}
<label></label>
{{/items}}
{{/if}}
</div>
The {{#if}}
and {{#items}}
seconds are "directly nested" because
they share the same <div>
parent element.
If {{#items}}
changes the DOM by adding more <labels>
,
{{#if}}
needs to know about the <labels>
to remove them
if {{#if}}
is re-rendered. {{#if}}
would be re-rendered, for example, if
all items were removed.