I have found only this posting, but there is no solution. I have tried also an ace template, because I can set a doctype, but this idea does not work.
So can I put some code into my template which is run, if Hugo is started? In my I case I need a (template) file which creates a plaintext file based on the static content, so I would like to iterate over all files within the static folder and write it to this plaintext file. Is there a possibility to execute any code?