Closed ericf closed 11 years ago
The render() and renderView() methods should not simply pass the options they receive from the caller along to the helper methods they call.
render()
renderView()
options
The following doesn't make sense and will break:
app.get('/', function (req, res, next) { res.render('home', { precompiled: true }); });
This will end up calling getPartials() and getTemplate() with options.precompiled = true, and throw an error.
getPartials()
getTemplate()
options.precompiled = true
The
render()
andrenderView()
methods should not simply pass theoptions
they receive from the caller along to the helper methods they call.The following doesn't make sense and will break:
This will end up calling
getPartials()
andgetTemplate()
withoptions.precompiled = true
, and throw an error.