sails can't find layout.jade

I am starting to learn Sails (0.9.7, node 0.10.16) and running through the sailscasts episodes. I am also trying to use jade as I do so. Where I am stuck now is that sails is not finding views/layout.jade. I backed out all the jade stuff and redid with ejs and sails is not finding views/layout.ejs.

As a last resort, I cloned activtyoverlord (the sailscasts app) and when I sails lift activityoverlord does not find its views/layout.ejs.

Any suggests as to what I might be doing wrong?


I'm not a jade user, however, I think you need to put extends ../layout at the top of your index.jade file to use layout.jade.

Also, I think both the layout.jade and index.jade have tabs and spaces (I don't think you can use both). I took out the tabs and added spaces in your layout.ejs file.

I created a project from scratch, changed engine to jade in config/views.js but left layout to the default value.

Also, I used these tags in layout.jade:



 // STYLES   

Grunt then puts the appropriate paths for javascript and styles in your layout file. I couldn't get index.jade into the layout.jade but I don't know enough about jade to determine what's wrong.

Here's a link to the repo I made:

Need Your Help

What's the best way to pass additional POST variables into a validation rule in Kohana 3?

validation kohana kohana-3

I'm trying to validate some POST data. One of the validations I need to do is a registration code, which is based off another POST variable - an IMEI number.

Custom Role Manager / Provider

c# web-config forms-authentication roleprovider

I am trying to implement a custom role manager in an MVC5 application using the following Custom Role Provider Tutorial.