June 2025
Intermediate to advanced
837 pages
24h 50m
English
Given the quality of the available template engines, it doesn’t make sense to write another implementation yourself. A very widely used template engine for Node.js is called Pug and was known as Jade for a long time. Due to trademark issues, the engine was renamed from Jade to Pug. In the following sections, you’ll learn about the most important features of such an engine and its practical use in an application, using Pug as an example. In this chapter, we’ll also go into more detail about the architecture and design of template structures. But first you need to install the engine on your system.
Pug is installed using the npm install pug command. Like so many other Node Package ...
Read now
Unlock full access