Closed swapneshk closed 9 years ago
For future reference -
Its working now the only thing I was doing wrong is not referencing correct path with the file, ie.-
app.set('view engine', 'jade'); res.render('../app/pages/dashboard-layout');
fixed the problem.
Good to close this now.
For one of my route I am trying to call another layout but it is throwing errors.
Example code in server.js under config folder -
My "dashboard-layout.jade" is residing under app/pages folder.
Following Error I am getting when visiting the URL -
Error: Cannot find module 'jade'
I tried by setting an option app.set('view engine', 'jade'); but no work like -
Though If I am using res.send({"message": "This is working!"});, I am getting the message when hitting the URL.
Let me know what I am doing here.
FYI -
My templates are working if routed via index.jade. Let me know if some more details needed from my side.