Dynamically generate HTML into dist/

Inject arguments and file references into the HTML document at
build time. Write the compiled document into the dist/ folder.