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

Always disregard blank lines in template #65

Open
jmcnevin opened this issue Sep 1, 2017 · 0 comments
Open

Always disregard blank lines in template #65

jmcnevin opened this issue Sep 1, 2017 · 0 comments

Comments

@jmcnevin
Copy link

jmcnevin commented Sep 1, 2017

I am seeing some issues with how templates are parsed when blank lines are present.

This:

div.content

  div.inner-content Hello!

will generate:

<div class="content"></div>
<div class="inner-content">Hello!</div>

whereas this:

div.content
  div.inner-content Hello!

will generate:

<div class="content">
  <div class="inner-content">Hello!</div>
</div>

Along these same lines, I've noticed that a blank line immediately following an each statement will lose the variable scope:

each $x in Collection

  div.row #{$x.Name}

This will throw an error undefined variable "$x"

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

1 participant