Am 11.11.2016 um 22:21 schrieb Carl Sturtivant:

On Thu, 10 Nov 2016 09:38:45 +0100, Sönke Ludwig wrote:

You can define a special traits struct (multiple such structs can be
defined) to configure the behavior, including how the output is formatted:

import diet.traits;
@dietTraits struct Traits {
     enum htmlOutputStyle = HTMLOutputStyle.pretty;
}

render!("index.dt", Traits);

I'll probably add a version that can be used to change this behavior
globally for vibe.d, without having to define traits.

Looks good, thanks, and now I found it in the docs produced by dub. (It also needs diet.html to be imported for HTMLOutputStyle.)

However, I am unclear how to use the above struct with staticTemplate rather than render, as the first seems to only exist with one compile-time parameter. Of course I can recode using render, so this is a very minor matter.

I think I'll turn the default around and make it output pretty by
default. Version VibeOutputCompactHTML can then be used to output
minimized.