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
Fails on boolean attributes #1
Comments
could you try the following?
|
You can just do |
Additionally.. the error thrown for this is |
@leviwheatcroft it's an interesting message. Could you provide your code example, so we can help you to handle it? |
Now I think about it, I was passing in react props rather than html attributes. I'm using I didn't commit the code when it was producing that error but it was something like this:
So |
@leviwheatcroft sorry for a long answer, I just missed it. The thing that now this plugin does not care about shorthands... In your case you can do a workaround: Table(striped=true bordered=true condensed=true hover=true) BTW only one short attribute works fine: Table(striped bordered=true condensed=true hover=true) |
Yeah that's the workaround I'm using, it's not a big deal and I can live without the shorthand syntax. the main thing I was bringing to your attention is that the error thrown doesn't really help you identify the problem. The error is: |
Would like to take a look at this issue closer after finishing with issue in pug-lexer (pugjs/pug#2956). I'm going to allow passing attributes as is (without shorthands). JSX will understand such attributes like boolean attributes with //CC @ForbesLindesay |
@ForbesLindesay I believe we can close this issue, since it's fixed in v4.2. |
e.g.
The text was updated successfully, but these errors were encountered: