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

'#export()' depends on '{' locaiton #52

Closed
truemetal opened this issue Apr 1, 2017 · 3 comments
Closed

'#export()' depends on '{' locaiton #52

truemetal opened this issue Apr 1, 2017 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@truemetal
Copy link

Here's a bit of inconsistency in .leaf parsing. You can still get the job done but still it feels like it should not be like that.

This works fine, and renders expected 'Hey'

#export("body") {
    <h1>Hey</h1>
}

And this renders nothing:

#export("body")
{
    <h1>Hey</h1>
}
@tanner0101 tanner0101 added the bug Something isn't working label Apr 3, 2017
@tanner0101
Copy link
Member

We should either support unlimited whitespace between ) and { or throw an error

@0xTim
Copy link
Member

0xTim commented Apr 16, 2017

It also doesn't work without the space, just to add

@BrettRToomey BrettRToomey added this to the 2.0 milestone May 3, 2017
plummer pushed a commit to plummer/leaf that referenced this issue May 16, 2017
@plummer
Copy link

plummer commented May 16, 2017

The pr above supports any amount of whitespace, including no whitespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants