-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mustache.js incompatibility #335
Comments
I confirm what you get. I think this is the same issue I added here |
We previously discussed this same issue in #148. tl;dr: Mustache is violating the Mustache spec (O_O) and Handlebars provides |
I've made some code to make hanlebars compatible. it certainbly need improvment but it allows me to detect where the incompatibility appears in my template, and to change progressivly to 'original' handlebars. Handlebars.mustacheLookup = function (parent,result,name){
}; Handlebars.JavaScriptCompiler.prototype.oldLookup = Handlebars.JavaScriptCompiler.prototype.nameLookup; |
Assuming these declarations:
I would expect the same output from Handlebars and Mustache. But they are different:
The text was updated successfully, but these errors were encountered: