Tidy output.
Basic support for templated links.