I am finding a build tool that help me to build the html template files to complete html. Like this:
header.tmp
<html>
<head><title>Hello world</title></head>
<body>
footer.tmp
<script></script>
</body>
</html>
index.tmp
{{header.tmp}}
<div>Hello world!</div>
{{footer.tmp}}
otherpage.tmp
{{header.tmp}}
<div>This is another page</div>
{{footer.tmp}}
And then I use a command to build the template, for example:
> htmltemplatebuilder ./
Building... index.html
Building... otherpage.html
Then I get the index.html and otherpage.html with header, body and footer. You got the idea.
I believe there is a tool like that, but I just cannot find out.
Please help, thanks a lot!