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.
- Host: GitHub
- URL: https://github.com/duologic/jsonnet-libsonnet
- Owner: Duologic
- License: apache-2.0
- Created: 2023-08-17T14:21:27.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T21:54:46.000Z (about 2 years ago)
- Last Synced: 2025-01-27T10:43:29.324Z (over 1 year ago)
- Topics: jsonnet, jsonnet-lib
- Language: Jsonnet
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.