Skip to content

Still escapes with noEscape enabled on isolated Handlebars environment #901

@reaperdtme

Description

@reaperdtme

Using isolated Handlebars environments with compat true and noEscape true still escapes mustaches

I logged the options object in Compiler.compile and Compiler.mustache and somewhere options is losing the noEscape:true value, but it retains the compat:true value

Running node v0.11

The breakdown occurs when Compiler.compile is called and options only contains:

compiler compile options:
{ data: true, compat: true, useDepths: true }

The usual Compiler.compile call has:

{ compat: true,
  noEscape: true,
  data: true,
 useDepths: true,
 knownHelpers: 
    { helperMissing: true,
     blockHelperMissing: true,
     each: true,
     if: true,
     unless: true,
     with: true,
     log: true,
     lookup: true } }

Ah, I see the issue is happening when I have registered helpers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions