donpark/hbs — pull request #36 by nyteshade (2012-11-01 21:47:48+00:00)
Title: Support 'view options'

So I have repeatedly made this fix locally. Most of the express documentation notes that to disable layout on all requests you set the 'view options' value as an object that has layout as false

app.set('view options', {
layout: false
});

Your code never checks this location and thus requires every request or some middleware to make these changes. I've made this small fix that does just that.