An incredibly simple way to modularize your code.
npm install -g modular-code
{%header.html%}
{%body.html%}
{%footer.html%}
<html>
<head>
</head>
<body>
<div>
{%hello.html%}
{%world.html%}
</div>
</body>
</html>
<span>Hello</span>
<span>World</span>
modular-code ./root.html ./main.html
<html>
<head>
</head>
<body>
<div>
<span>Hello</span>
<span>World</span>
</div>
</body>
</html>