-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Disappearing newlines #857
Comments
beta1 introduced standalone statements, matching the mustache spec. It looks like you uses of whitespace control is the reverse of the newlines that are left in place by the standalone logic. Do you still see funky rendering if you remove the explicit whitespace control that you have in that example? If so could you post a live example of the failure? |
…so back to Handlebars v2.0.0. Adapted playtotv-define.js.hbs template to work with standalone block whitespace removal. Removed em-define template since it was not really being used.
Thanks for the information! I've adapted our template to work with Handlebars v2.0.0. Not sure if I did it the best way, or if everything works exactly the way that it should, but it's good enough for me :) You can see my current template here: And the diff in the commit referenced above. Let me know if you would like anymore information. |
I'm using the following technique to be able to declare partials inline. It works fine in v2.0.0-alpha.4, but in following versions, some of the newlines within helper blocks seem to be eaten up.
Am I doing something wrong or has an issue been introduced since then?
JavaScript:
Template (excerpt from: https://github.com/exmg/nbob/blob/master/res/em-api/playtotv-define.js.hbs):
Output before:
Output now:
The text was updated successfully, but these errors were encountered: