Skip to content

compiler-api.md shows an example which does not work when the with-helper is used. #1376

@bdiz

Description

@bdiz

This issue is following conversation with @nknapp here: c997020#commitcomment-23827796

Issue is regarding the example in the compiler-api.md doc here: https://github.com/wycats/handlebars.js/blob/c9970200a04a8629b5e9b1ed3c540d391ab00f26/docs/compiler-api.md#L307

When using the with helper, the lookupLowerCase helper no longer gets called. I think the with helper is being executed with the original Handlebars, not the MyCompiler.

Here is a jsfiddle to demonstrate: https://jsfiddle.net/ujp6v98h/

I tried getting it to use MyCompiler when comping the content in the with-helper without success (got an infinite loop with my implementation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions