View On GitHub
reading-notes
Reading Notes for Codefellows!
Project maintained by
AlanYHung
Hosted on GitHub Pages — Theme by
mattgraham
Code 301
Reading 12
(All My Notes are attributed/sourced from the Resources directly preceding them.)
EJS Partials
Author: Hensle Joseph
Article Source
Partials are ejs files that allow you to reuse HTML across multiple files
Partials are good for static views such as nav bars, headers, and footers
Use <%- include(‘<path><filename without extension>’) %> to link your partials in your other files
Watch EJS tutorial from WalkThroughCode on YouTube, Videos 1-5
YouTube Channel: WalkThroughCode
Article Source
Partials are native to EJS
Partial files belong in the directory path /views/partials
<– Back