On Thu, 08 Aug 2019 16:37:44 GMT, Carl Sturtivant wrote:
Is there an alternative to render that simply returns the HTML as a string instead of sending it to an HTTPServerResponse?
I managed to make this work using the template compileHTMLDietString though the technique is not as clean as I would like. I was able to use a Traits struct to pass as a type to that template to generate pretty HTML, but indentation collapses of course as soon as I embed it inside a diet template.
Is there a cleaner way to proceed? I want to produce pretty (nested with nice indentation) HTML.