Fix typos (#31865)
This commit is contained in:
@ -458,13 +458,13 @@ app.set('views', './views');
|
|||||||
|
|
||||||
Since we are using `app.set()` which indicates configuration within our server file, we must place them before we define any route or a middleware function.
|
Since we are using `app.set()` which indicates configuration within our server file, we must place them before we define any route or a middleware function.
|
||||||
|
|
||||||
In the `views` direcotry, create file called `index.pug`.
|
In the `views` directory, create file called `index.pug`.
|
||||||
|
|
||||||
```pug
|
```pug
|
||||||
doctype html
|
doctype html
|
||||||
html
|
html
|
||||||
head
|
head
|
||||||
tite="Hello from Pug"
|
title="Hello from Pug"
|
||||||
body
|
body
|
||||||
p.greetings Hello World!
|
p.greetings Hello World!
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user