Template7: output without whitespaces and newlines

I’m trying to generate simple XML using T7 templates. I want to preserve my templates readable (i.e., formatted), but output - small. Is it possible to have output without whitespaces and newlines that presents in template?

You can remove new lines and trailing whitespaces in JS, something like:

var result = Template7.compile('...')({...});
const trimmed = result.split('\n').map(line => line.trim()).join('');

Yes, that’s possible workaround. But would be nice to have build-in support. Any chance to have this implemented?