I would like to know if a tool existed to generate a one HTML file from a set of HTML, CSS and Javascript files. It should parse the HTML and replace any include with the contents of the file.
An example:
<!DOCTYPE html>
<html>
<head>
<title>My example</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="test.css" />
<script src="test.js" ></script>
</head>
<body>
<input class="test" type="button" value='Test' onclick="testThat()"></input>
</body>
</html>
Should output:
<!DOCTYPE html>
<html>
<head>
<title>My example</title>
<meta charset="utf-8" />
<style>
.test {
color: red;
}
</style>
<script>
function testThat() {
alert('itWorks');
}
</script>
</head>
<body>
<input class="test" type="button" value='Test' onclick="testThat()"></input>
</body>
</html>
I am sure such a tool exists but I can't find it yet!
It should run on Windows, and being free is better (with a donation button if you liked the tool).