Read No. | Name of chapter |
---|---|
11 | EJS |
EJS template engine
Introduction
EJS is among the most popular tempate view engines for node.js and expressjs. EJS simply stands for Embedded JavaScript templates, and we can use it both server-side or client-side. At this story.
Basic Syntax(Tags):
-
<% ‘Scriptlet’ tag, for control-flow, no output.
-
<%= Outputs the value into the template (HTML escaped).
-
<%- Outputs the unescaped value into the template.