I have used Jekyll in past project and now am using EJS with nodejs.
With Jekyll I would create templates and modify body according to my page view. Example as below.
Default
<!doctype html>
<html lang="en">
{% include head.html %}
<body>
{% include header.html %}
{{ content }}
{% include footer.html %}
</body>
</html>
Index
---
layout: default
---
<div class="container">
<!-- My html code -->
</div>
Page 2
---
layout: default
---
<div class="container">
<!-- My other code -->
</div>
As you can see, I simply add content in my page and default remains intact. I don't need to open and close body or some other element everytime. I couldn't find similar solution for EJS. There is thing called partials but maintaining head, body and defaults are bit troublesome.
Is there some solution similar to Jekyll or something better for easy development?