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

Rendering newlines and spacing #172

Closed
emoryy opened this issue Oct 3, 2014 · 0 comments
Closed

Rendering newlines and spacing #172

emoryy opened this issue Oct 3, 2014 · 0 comments

Comments

@emoryy
Copy link

emoryy commented Oct 3, 2014

This emblem and handlebars code should render the same html, right?

label Text1
= link-to 'somewhere': span #{a-helper something.prop}
|  
i.fa.fa-chevron-right
label Text2
<label>Text1</label>
{{#link-to 'somewhere'}}<span>{{a-helper something.prop}}</span>{{/link-to}}
&nbsp;
<i class="fa fa-chevron-right"></i>
<label>Text2</label>

Well, they are not. Handlebars leaves a bunch of newlines (\n) in the code resulting a different spacing between these inline elements.

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

No branches or pull requests

2 participants