Thanks!
It ended up being a bit ugly though, but it worked.
Partial + CSS
Usage
- Save the CSS in above gist to your site.
- Add the
debugprint.html
as a partial. - Use that partial in your templates as:
{{ partial "debugprint.html" .Params }}
Example
PS: I just realized that that partial can be called recursively! Still looking forward to comments on how I can optimize it further.