visionmedia/jade — Issue #366: Inheriting view tied to layout
Author: dizlexik
Created: 2011-10-08 04:17:16+00:00
State: open

I was super-pumped when I first read about the new template inheritance in Jade but when I looked a little closer I realized that I'm not in love with the implementation :(
So basically the inheriting views are tied to their parent layout, right? What I really want to do is have multiple layouts (for example, one for web, one for mobile) that can expose the same blocks. I don't think it should be my view's responsibility to specify (via `extends`) which layout they will be rendered within. That should be the controller's job. I would love this implementation of blocks exactly the way it is if the whole concept of `extends` (and forcing me to set `{ layout: false }`) were thrown out. Is it possible to make this more dynamic like that?