baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
627 stars 70 forks source link

Problem Using .html Extension #76

Closed iwanjunaid closed 8 years ago

iwanjunaid commented 10 years ago

Hi, i have problem when changing ext option from .ect to .html.

The error is "Failed to lookup views..."

Aeonrush commented 8 years ago

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);