Do you know some tool to
automatically inline both CSS and JavaScript external resources into a HTML file?
The goal is to have a single HTML file which can be properly viewed off-line.
Similar to some old question on StackOverflow (but the answers there seem to support CSS only, not Javascript).
Either of the platforms: online (web access), Unix, Windows is fine.
I thought that could be reached by replacing all:
<script type="text/javascript" src="x.js"></script>
with
<script type="text/javascript">
And here goes the content of the x.js file
</script>
and similarly all <link rel="stylesheet" type="text/css" href="theme.css">
with
<head>
<style>
Here goes the content of theme.css
</style
</head>
(or whatever the actual syntax is)
wget
all the resources.