-
Notifications
You must be signed in to change notification settings - Fork 342
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
Jade blocks #292
Comments
Hey, unfortunately you basically have to choose between Jade’s |
I've used them together before and it's possible, it just takes a bit of time to understand Jade's Here's my answer in stackoverflow http://stackoverflow.com/questions/23815431/is-there-any-way-to-use-jade-blocks-in-harp-js If you still want to use partials, you could do so in any jade file (even layout files), but I'd be careful with pushing it too far. |
I got something working, using a custom layout that my main _layout inherits. Not the most elegant solution but it works! Thanks |
Hi @leesus. Could you share your solution please? |
@seb2point0 It's been a while since I did this, hopefully you get the gist, pardon the pun... https://gist.github.com/leesus/eaa55b986a4fddd8320e |
I'm building a simple site with Harp, and I'm using yield to pull in page content. However, I'd like to use Jade blocks so that specific pages can output their own scripts into the layout.
At the moment, whatever I have in a block in my template just gets passed through as is into my layout.
For example:
Outputs:
As opposed to the intended result:
Any ideas?
The text was updated successfully, but these errors were encountered: