Adding a view layer

At a basic level, web frameworks are primarily responsible for delivering dynamically generated HTML to a web browser.

We tend to use a view layer of some kind, generally in the form of a template language, as a declarative way to integrate data with HTML to produce the desired combined output.

In this recipe, we'll learn how to use views with Express, and in the There's more... section we'll explore the same with Hapi and Koa.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset