Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented syntactic difference with mustache #1324

Closed
robinhouston opened this issue Mar 13, 2017 · 1 comment · Fixed by renovatebot/renovate#194
Closed

Undocumented syntactic difference with mustache #1324

robinhouston opened this issue Mar 13, 2017 · 1 comment · Fixed by renovatebot/renovate#194

Comments

@robinhouston
Copy link
Contributor

I’m in the process of converting a project from mustache to handlebars, and I ran into a syntactic difference that isn’t documented in the differences section.

Mustache allows whitespace between the {{ and the #, >, ^, etc., which Handlebars does not. For example this snippet:

{{ ^ user }}{{ > header_not_logged_in }}{{ / user }}

had to be changed to:

{{^ user }}{{> header_not_logged_in }}{{/ user }}

to work with Handlebars.

It may be useful to mention this in the docs.

@nknapp
Copy link
Collaborator

nknapp commented Mar 13, 2017

Hi. It would be great if you could create a PR that adds a bullet-point to the appropriate section. This certainly is noteworthy.

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

Successfully merging a pull request may close this issue.

2 participants