Problem Using .html Extension
iwanjunaid opened this issue · comments
Kurniawan Junaidy commented
Hi, i have problem when changing ext option from .ect to .html.
The error is "Failed to lookup views..."
Alexander Black commented
Works for me
var ectRender = require("ect")({watch : true, root : path.join(__dirname, 'views'), ext : ".html"});
app.set("view engine", "html");
app.engine("html", ectRender.render);