concept Embedded JavaScript in category node

This is an excerpt from Manning's book Node.js in Action, Second Edition.
If you’re familiar with templating and the Model-View-Controller (MVC) pattern, you can skim through to section 7.2, where you’ll start learning about the template engines detailed in this chapter, which include Embedded JavaScript, Hogan, and Pug. If you’re not familiar with templating, keep reading—you’ll explore it conceptually in the next few sections.
Embedded JavaScript (https://github.com/visionmedia/ejs) takes a fairly straightforward approach to templating, and it will be familiar territory for folks who’ve used template engines in other languages, such as Java Server Pages (JSP), Smarty (PHP), Embedded Ruby (ERB), and so on. EJS allows you to embed EJS tags as placeholders for data within HTML. EJS also lets you execute raw JavaScript logic in your templates for tasks such as conditional branching and iteration, much as PHP does.