Chapter 7. Views and templates: Pug and EJS

This chapter covers

  • Express’s view system
  • The EJS templating language
  • The Pug templating language

In the previous chapters, you learned what Express is, how Express works, and how to use its routing feature. Starting in this chapter, you’re going to stop learning about Express.

Well, okay, not exactly. You’ll still be using Express to power your applications, but as we’ve discussed so far, Express is unopinionated and requires a lot of third-party accessories to make a full-fledged application. In this chapter and beyond, you’ll start digging into some of these modules, learning how they work, and how they can make your applications lovely.

In this chapter we’ll talk about views, which give you a ...

Get Express in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.