jsonnet

last updated: Jan 23, 2024

https://jsonnet.org/

A configuration language for app and tool developers

A simple extension of JSON


here's a good article arguing for its usage, "Why are we templating YAML?"

firstly, let's define some jsonnet:

{ image: std.extVar('image'), }

Then, we can generate it using the Jsonnet command line tool, passing in the external variable as we need to:

jsonnet image.jsonnet -V image="my-image" { "image": "my-image" }

I might try this out as a command-line template language

↑ up