janl / mustache.js

Minimal templating with {{mustaches}} in JavaScript
https://mustache.github.io
MIT License
16.37k stars 2.4k forks source link

#343: Resolved having dot in the key name #795

Open Vaspar-a opened 2 years ago

Vaspar-a commented 2 years ago

Resolved Issue #343 .

const view = {
'a.b.c': 'abc_value' ,
x: {
'q.w.e.r.t.y': 'qwerty'
}
};
const tmpString = '{{a.b.c}} {{x.q.w.e.r.t.y}}';
Mustache.render(tmpString, view); // Returns: abc_value