I'm new to Node/EJS. So Need your clarification on creating new routes. I can easily integrate static html files using EJS template system in Node js. But routing(inserting another templates using route) inside the body section cannot be achieved by me.
My Code : views/index.ejs
<!DOCTYPE html>
<html lang="en">
<head>
<% include ./templates/head.ejs %>
</head>
<body class="skin-blue">
<div class="wrapper">
<% include ./templates/header.ejs %>
<section class="content">
<div class="content-section container">
<div class="row">
<% include ./contents/aboutus.ejs %> //aboutus page is rendering
</div>
</div>
</section>
<% include ./templates/footer.ejs %>
</div>
<% include ./contents/help-popup.ejs %>
<% include ./templates/jsfiles.ejs %>
</body>
</html>
Here,Obviously the aboutus.ejs is working properly inside the body part. Now I would like to call careers.ejs by clicking on link inside the aboutus.ejs. Header and Footer should not change. How to add & render careers.ejs by routing?