docpad/docpad — pull request #897 by nfriedly (2014-11-25 17:49:05+00:00)
Title: Fixing error message when docpad can't find the layout

I was getting the error

ReferenceError: layoutSelector is not defined
at c:\path\to\project\node_modules\docpad\out\lib\models\document.js:398:74
[...]

Instead of the more helpful `Error: Could not find the layout service-landing-page on /user-modeling.html` because `layoutSelector` wasn't defined in the `renderLayouts` function.

This fixes that.