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
mixin - using #[block] fails #3004
Comments
It is not possible to use a block like that (see Mixin Documentation). This works: mixin a()
span
| somehting
block
+a()
b text |
I think what you need is mixin a()
span
something
block
+a()
b text |
This is a bug, that should work. To fix this, someone needs to:
|
Hey @ForbesLindesay I was working on this issue and would appreciate some further help in understanding how a
For this particular example, the addText() function runs Also, the same occurs in tag interpolation, a token of type: text and value "" always follows the interpolation token. But despite the same lexer output, tag interpolation with Also, the "indent" type is also a way of identifying line end, should that be used here? Even then, how do I deal with the trailing "" token after the block? Should i leave it alone? |
The empty string token is fine and correct. The issue is just that:
If you would like to take this issue, please comment to let me know you're working on it, and then submit a pull request that gets as far as possible through the steps I've outlined, even if it's just adding the failing test case. It's harder to have this discussion when we're just working in abstract words. |
Thank you! This makes things a lot more clearer to me. Yes, I would like to take this issue up. I am working on it. I'll add the failing test first and then, with your guidance, hopefully submit a useful PR resolving this issue. I'll try and be more succinct too. |
Hi, how is the process on the issue? |
The following does not work. The block does not expand. (Interestingly, it does with
pug-php
.exptected:
The text was updated successfully, but these errors were encountered: