Google News
logo
Express.js - Interview Questions
How can you use a Pug template engine inside Express?
We will first install it using the given command:
npm install pug
Then we will set it as following when initializing the Express app :
const express = require ('express')
const app = express()
app.set ('view engine', 'pug')
Advertisement