visionmedia/ejs — pull request #95 by melnaron (2013-01-14 03:58:29+00:00)
Title: Support for Express 'view engine' extension setting in 'include' statement

Hello, I found and fixed next problem with 'include' statement: when I set 'view engine' setting via Express (app.set('view engine', 'html') for example) I can put filepath of the view in the 'res.render' function without extension, but when I want put filepath without extension in 'include' statement in view it will cause an error, because default extension for included files is only '.ejs'. I fixed this issue by adding support for extension from 'view engine' option when it set.