One question I have is how we go about providing a text/template
renderer when requested. Outputting JSON or Javascript (or anything non-XML) with the html/template
engine tends to just complicate things when the text/template
engine would be much simpler. If we did offer a text/template
engine, we’d need to look at our template funcs to make sure they can work in both contexts (ie. make sure we’re returning strings instead of template.HTML
).
# config.toml
# Define output types used in this site
output = ["html", "json", "js", "rss", "svg"]
# Designate certain output types as text-based
outputText = ["json", "js"]