donpark/hbs — pull request #27 by kruppel (2012-07-20 07:06:06+00:00)
Title: Appends extension to layout option if not already provided.

I'm not sure if this was the desired approach, but I thought I'd give this a shot.

This patch adds a file extension to the layout filename if not already provided. In the case the extension is not provided, the appended file extension will be consistent with the view template, i.e. `res.render('index.html' { layout: 'custom' });` will render a custom.html layout.