solidusjs / solidus

A simple server that generates pages from JSON and Templates
MIT License
28 stars 7 forks source link

Use layouts local to views #26

Closed Fauntleroy closed 11 years ago

Fauntleroy commented 11 years ago

Page views will now use the layout closest to them in the view hierarchy. Say we have the following views:

views/deeply/nested/page/using/a_layout.hbs
views/deeply/nested/page.hbs
views/deeply/nested/layout.hbs
index.hbs
layout.hbs

deeply/nested/page/using/a_layout and deeply/nested/page would both use deeply/nested/layout.hbs, while index would use layout.hbs.