Closed tomjack closed 12 years ago
Just added support for Jade's template inheritance. Does that work for you?
Yes, this looks like it will work.
However, to me, template inheritance doesn't seem like a good replacement for partials, because you have to go look for files which reference the file you're in, instead of just looking at the partials you reference in that file. Template inheritance seems useful for those rare situations where partials aren't enough, but partials are easier to reason about and debug for the simple cases.
I can always wrap renderFile with my own function that adds whatever extra helpers I want.
This allows one to do
!= partial('foo')
. It's relative to the template in which one callspartial
.