Open aitor opened 11 years ago
Ah yes. This is actually a regression. It should function as it says in the docs. Pull-request away!
Would just like to chime in that I'm running into this as well. (Though I'm a front-end guy and thus can't fix it and submit a pull-request.)
According the documentation:
Borrowing the example from gem's site:
It's my understanding that all cases, A,B,C and D should use the same layout (_layout.erb), but currently only A and B are correctly working.
The current pipeline implementation is using File#split (see pipeline.rb) for generating an array with the possible locations for layouts and therefore expecting layout to be in one of the following locations:
This implementation will, as consequence, check always just two levels for each template (its current dir and its parent). Before doing the pull request with a fix I'd like to confirm with @jlong or any other familiar with the codebase if this is a real bug and not a feature :).