The existing template implementation uses html/template, which automatically escapes the rendered output to be HTML-safe.
This causes problems when templating non-trivial data such as e.g. RSA keys. The rendered output is unusable for anything except in-browser display, unless you further process it to unescape the HTML entities.
Since this CLI tool doesn't have an HTML interface, I'm not sure why we would want escaped output by default.
This PR changes the template command to use text/template to avoid mutating the output.
The existing template implementation uses
html/template
, which automatically escapes the rendered output to be HTML-safe.This causes problems when templating non-trivial data such as e.g. RSA keys. The rendered output is unusable for anything except in-browser display, unless you further process it to unescape the HTML entities.
Since this CLI tool doesn't have an HTML interface, I'm not sure why we would want escaped output by default.
This PR changes the template command to use
text/template
to avoid mutating the output.