Recommend this page to a friend! |
Classes of Emmanuel Podvin | Blapy | extlib/mustache/3.0.1/MIGRATING.md | Download |
|
|
DownloadMigrating GuideMoving to mustache.js v2Overviewmustache.js v2 introduces a bug fix that breaks compatibility with older versions: fixing null and undefined lookup. When mustache.js tries to render a variable Value lookup should stop whenever the key exists in the context. However, due to a bug, this was not happening when the value was Here's a simple example of the same template rendered with both mustache.js v1 and v2: Template:
View:
Rendered using mustache.js v1:
Rendered using mustache.js v2:
|