An open API service indexing awesome lists of open source software.

https://github.com/duologic/jsonnet-libsonnet

Jsonnet library to generate jsonnet code.
https://github.com/duologic/jsonnet-libsonnet

jsonnet jsonnet-lib

Last synced: 2 months ago
JSON representation

Jsonnet library to generate jsonnet code.

Awesome Lists containing this project

README

          

# jsonnet-libsonnet

> [!CAUTION]
> This library has been superseded by https://github.com/crdsonnet/astsonnet

*EXPERIMENTAL*

A Jsonnet library to generate jsonnet code. This library implements functions to create the Jsonnet expressions as represented in the Abstract Syntax. This allows us to generate valid Jsonnet programmatically.

## WHY?

Because I can... and it is fun!

And:

I've implemented [static rendering for CRDsonnet](https://github.com/crdsonnet/crdsonnet#static-rendering) a while back but have never felt very confident in it, the engine has been built through trial-and-error without following the spec. With this library I can now implement a rendering engine that works according to spec, boosting confidence that this will return valid Jsonnet.