CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 12
Releases: canjs/can-stache
for(number) docs fix
Compare
Documented {{scope.index}}
correctly.
Assets 2
for(integer)
Compare
PR: #709
This enables for loops to loop through numbers:
{{# for(this.count) }}
{{ scope.index }}
{{/ for }}
Assets 2
Fix docs typo
Compare
fix typo for deprecated is
helper to recommend eq
helper as replacement
Assets 2
Named Partials render string result in stringOnly state
Compare
This fixes named partials to render string of DocumentFragment
in stringOnly
state, for example:
var view = stache(
'{{<addressView}}.someClass { color: #000; }{{/addressView}}' +
'<style>{{addressView()}}</style>'
);
var fragment = view();
console.log(fragment.firstChild.innerHTML); // <style>.someClass { color: #000; }</style>
Assets 2
Allows `.` (dot) in for-of key
Compare
This fixes an issue where the key in a for-of loop contains a dot, for example, if the data looks like this:
"Page.2" : {
pageName: "Page.2"
}
can-stache could not read/render item.pageName where item is the object above. Now the dot or dots are escaped which allows the value to be read and rendered.
Assets 2
QUNIT2 upgrade
Compare
This updates the tests to use QUnit@2.x.x.
Assets 2
Warn when closing magic tag is missed
Compare
Throws a warning when a magic closing tag is missed, for example:
{{# let foo="bar"}} {{foo}}
will warn with "missmatch.stache:1: closing tag {{/let}} was expected"
.
Assets 2
Add documentation for data helper
Compare
Resolves issue #574
Added a deprecation notice for the {{ data helper }}
@function can-stache.helpers.data {{data name}}
@parent can-stache/deprecated
@deprecated {4.3.0} Use [can-stache.helpers.domData] instead.
@signature `{{data name[ key]}}`
Adds the current [can.stache.context context] to the
element's [can.data].