canjs / can-stache

Live binding handlebars templates
https://canjs.com/doc/can-stache.html
MIT License
10 stars 13 forks source link

698 key has dot #699

Closed mikemitchel closed 5 years ago

mikemitchel commented 5 years ago

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.

Closes #698

mikemitchel commented 5 years ago

As per Bitcentive meeting, this needs review with @justinbmeyer for better way to solve this problem