You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serve searches for a layout file in the same directory as the view. If it fails to find one there, it traverses up the directory tree searching each parent directory until it finds the "nearest" layout. http://get-serve.com/documentation/layouts
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 :).
The text was updated successfully, but these errors were encountered:
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 :).
The text was updated successfully, but these errors were encountered: