const r = window.r = new Ractive({
el: '#main',
/**
* Attempting to access any key in @shared that contains 'context' (lowercase) throws a ParseError.
* For example, each of the following templates is invalid:
*/
// template: `{{@shared.thisKeyContainscontext}}`,
// template: `{{@shared.thecontextiskey}}`,
// template: `{{@shared.anything.context}}`,
template: `{{@shared.context}}`,
});
Description:
Attempting to access a property within
@shared
that happens to include'context'
(lowercase) as part of its name, throws aParseError
.This got noticed while attempting to access a shared property that was unfortunately called:
{{@shared.globalDataset.contextBoxes}}
.Versions affected:
1.3.8
Platforms affected:
Tested on Chrome and Safari
Reproduction:
JSFiddle