View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page



This is the directory that holds all of your custom views.

To create a custom view, create a new directory inside of this then create a new .ejs file. In order for it to be rendered by a client, you must either set up a route in myApp/config/routes.js or use the res.view() method inside of a custom controller action.

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.