Skip to content

Mustache.js incompatibility #335

@ghost

Description

Assuming these declarations:

var template = '{{#foo}}{{bar}}{{/foo}}';
var view = {
  "foo": {
    "lol": "wut"
  },
  "bar": "Hello World!",
};

I would expect the same output from Handlebars and Mustache. But they are different:

>>> Handlebars.compile(template)(view);
""
>>> Mustache.to_html(template, view);
"Hello World!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions