JSON Templates

For progressive enhancement it can be useful to create JSON files that are loaded at runtime using Javascript.

Enable files with the json extension to be rendered as templates:

[build]
extend = ["json"]

Then JSON files in the site source directory will be rendered to the build directory using the template rendering engine. They can use the json helper to write out page data:

{{json result}}