Edit Page

views/

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 config/routes.js or use the res.view() method inside of a custom controller action.

Want to see for yourself?

An example of this directory can be found in our sample app repo, here.

Check out the official Sails VS Code extension

Documentation

App Structure


Sails logo

Anatomy of a Sails App

AltStyle によって変換されたページ (->オリジナル) /