Skip to content

Handlebars.js incompatibilities #509

@vojtechkral

Description

@vojtechkral

I've ran into two subtle incompatibilities with the reference implementation

  1. I was accidentally using expression in the shape {{ (helper variable) }}. This syntax is rejected by hbs.js, with hbs-rust it's not rejected and somehow the (string) result of that helper variable expression gets interpreted - when the string contains names of helpers, it will try to evaluate them.
    I found out about this by getting a strange error from inside the ne helper when the string returned by helper variable contained the word "ne".

  2. Whitespace ellision with raw expressions:
    hbs-rust uses the syntax {{{~ foo ~}}} but hbs.js rejects that and instead uses {{~{ foo }~}} ... It looks weird but that's what they use...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions