Generate the output file from a template. This makes it a bit more structured, when changing something in the template.