Similar to other web frameworks such as Rails, Express has the concepts of views, which let you separate your UI from your application using separate files. Usually, these are written using a templating language such as Jade. Let's create a view for our root action.
To do this, we'll need to:
viewsfolder and add a Jade view file.
Let's create a new folder in our project root called
views. Inside this folder, we create a new file named
index.jade. This is how it should look:
doctype 5 html head title Our Jade view body p= message
As you can see, Jade offers ...