Code 301: Class 12 - EJS Partials
- Partials are useful for reusing parts of the same HTML in multiple views
- Nav bars are a good example of where a partial may be useful
- Footers are another example
<%- include(Partial_File_Path) %>
- Video tutorial of how to implement a partial ejs template
<%- include('partials/example') %>
Example of how to include a partial in a template
Return to reading-notes Deployed Site
Return to reading-notes Mark Down