erythraios
erythraios

Reputation: 339

What is a 'view' in ExpressJS?

There are a number of references to something called a view in the ExpressJS documentation. For example, the first argument of res.render is a view, for example 'index'. What is a view?

Upvotes: 0

Views: 101

Answers (2)

alex
alex

Reputation: 12265

"view" in express.js is just a template file, nothing more than that.

Upvotes: 0

user2630808
user2630808

Reputation:

The view in express would be the template so to speak that the app would use to render the pages. So that you could supply a particular template to render all pages to say /about using the about view.

Upvotes: 1

Related Questions