Indent template nicely.

Use '-' to squash the whitespace so the if/else can be indented.