Factored out prefixing and suffixing of target html files.