Skip to content

Escaping mustaches #67

Closed
Closed

Description

@raiden-dev

In Handlebars, mustaches can be escaped by backslash. Highlighting such things could be useful.
See jsfiddle example on how escaping works.

Activity

  1. daaain commented on Jul 28, 2015

    @daaain
    Owner

    Hmm, interesting, didn't know about this!

    Sounds like a good feature to add, though at this point (just got my second little one) I can't promise when will I get around to do it.

  2. raiden-dev commented on Jul 29, 2015

    @raiden-dev
    Author

    I currently heavy use escaping in my 2-step templating process and be glad to create a PR soon, because I miss this feature much.

  3. daaain commented on Jul 29, 2015

    @daaain
    Owner

    Ah, that would be brilliant, I'll make sure to review your PR!

    I've just added a test case from your fiddle: https://github.com/daaain/Handlebars/blob/master/test/inline_script.handlebars.html#L116

    Also there's a bit in the readme about contribution, have a read and let me know if you have any questions: https://github.com/daaain/Handlebars#testing--contribution

  4. added a commit that references this issue on Jun 29, 2026
  5. daaain commented on Jun 29, 2026

    @daaain
    Owner

    Fixed in #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions