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
Only named blocks and mixins can appear at the top level of an extending template #2658
Comments
The content you (presumably) intended to put inside |
I encounter the same issue and your comment isn't vary clear to me. |
I have the same problem |
If your template has GOOD: extends ./layout.pug
block content
div some content BAD: extends ./layout.pug
block content
div this content isn't inside a block |
Notice also comments produce this error ^^ extents /parent.pug
block something
somethingwithin
//and a nice comment for the next block
block commentedblock
somethingwithincommentedblock To work needs to be this :-) extents /parent.pug
block something
somethingwithin
//and a nice comment for the next block
block commentedblock
somethingwithincommentedblock |
it works for me. thanks |
@JhonnyJason use this instead ( extents /parent.pug
block something
somethingwithin
//- and a nice comment for the next block
block commentedblock
somethingwithincommentedblock |
Thanks @JhonnyJason for your comment :) |
layout.pug
user/create..pug
The text was updated successfully, but these errors were encountered: