You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change the root folder option but it is always ignored:
/** * Created by korial on 10.05.16. */varexpress=require("express");varECT=require("ect");varpath=require("path");varviewsRoot=path.join(__dirname,"gui","views");varectRenderer=ECT({watch: false,root: viewsRoot,ext: ".ect"});varapp=express();app.set("view engine","ect");app.set("views root",viewsRoot);app.engine("ect",ectRenderer.render);console.log(viewsRoot);app.use((req,res)=>{res.render("frontend/home",{});});app.listen(8080,"0.0.0.0",()=>{console.log("Server listening on...");});
And the console output:
/home/korial/test/gui/views
Server listening on...
Error: Failed to lookup view "frontend/home" in views directory "/home/korial/test/views"
Tested with express 4.13.4 and ECT 0.5.9
The text was updated successfully, but these errors were encountered:
You can change the root folder option but it is always ignored:
And the console output:
Tested with express 4.13.4 and ECT 0.5.9
The text was updated successfully, but these errors were encountered: