You can clone with
No one assigned
A common use of inheritance for templating involves overriding a block multiple times and expecting each override to be concatenated together. I think this should be supported in Jade. Example follows:
p Hello world
The problem is twofold; first blocks don't seem to behave properly across include boundaries, and second, in this example, extra_scripts block should contain both scripts, but doesn't. Am I just using it wrong or is this an actual problem?
hmm I had planned on adding either block append scripts\n stuff or append scripts\n stuff which to me seems more explicit, I wasn't aware that django (if that's what you're referring to) concatenates, to me that seems to be more of a gotcha
block append scripts\n stuff
append scripts\n stuff
block append scripts sounds perfect (explicit is better than implicit, you're right). Any idea when this addition might land in the repo?
block append scripts
i'll probably have time for it some time next week
any update on this ticket? I'd like to do something similar
re-titled so it stands out later :D
Added block append / prepend support. Closes #355
with inheritance it's a little weird, since you're prepending / appending to the parent block, might end up causing some gotchas
this is awesome! any idea on when this will be officially released to npm?
right meow: 0.19.0
hot damn! thanks