-
Notifications
You must be signed in to change notification settings - Fork 8
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
One Jade scope for layouts and documents #1
Comments
+1 |
Can you do up a mockup input and output of what you're after. I don't use jade myself, so not that familiar with its requirements. Hopefully we can get someone who uses jade to pimp out this plugin some more :) |
If I have a layout, say, +foo
.foo.bar
block Then I want to use it in ---
layout: default
---
+foo
baz Right now there would be an error with undefined |
Balupton, firstly read little about jade mixins: I say otherwise: All mixins from documents/nested layouts should be available in layout, where you use: |
+1 Please do something, that's annoying problem |
Please submit a pull request, or add a bounty to inspire someone else to submit a pull request. |
+1 |
Is there any way to make the layouts and documents to be in one scope? So I could define Jade's mixins and variables in one layout file and then reuse them in the documents?
Right now I need to manually write the includes for my
mixins.jade
in every document and layout, and it's not fun.The text was updated successfully, but these errors were encountered: