NodeJS Folder Structure

NodeJS File Structure


                            
<%- contentFor('HeaderCss') %>
<%- include ('partials/title-meta', {"title":"Starter Page"}) %>
<%- contentFor('body') %>
<%- include ('partials/page-title', {"pagetitle": "Utility" , "title" : "Starter Page" }) %>
<div>
...
</div>
<%- contentFor('FooterJs') %>

Layout setup

You can set the default layout in the views/partials/body.ejs file in the body tag.

<body data-bs-theme="light" data-topbar="light" data-sidebar="dark"> 
data-bs-theme="light" To set Light layout.
data-bs-theme="dark" To set Dark layout.
data-sidebar="light" To set Light Sidebar.
data-sidebar="dark" To set Dark Sidebar.
data-topbar="light" To set Light Topbar.
data-topbar="dark" To set Dark layout mode.
© Skote.