Read No. | Name of chapter |
---|---|
12 | EJS Partials |
EJS Partials
Partials come in handy when you want to reuse the same HTML across multiple views.
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.