Commit graph

5 commits

Author SHA1 Message Date
sh0rez
66a158a8f2
feat: ignore
Implements ignoring certain keys right in Jsonnet, by adding:

  {
    '#foo': "ignore",
    foo: {}
  }

This is especially useful for objects that include `self` references,
which might otherwise recurse infinitely
2020-05-12 22:48:02 +02:00
sh0rez
4e4d4a7170
feat: faster parser (#3)
* fix(load): support nested objects

* feat: initial golang parser

Moves most of load.libsonnet to a Golang app for hopefully much faster
parsing (fingers crossed)

* feat(fast): nested objects, subpackages

* feat: incorporate fast mode into main binary

Moves the work done in the fast directory into the main executable,
removing the Jsonnet based parser in favor of the much faster Golang one.
2020-05-10 23:09:12 +02:00
sh0rez
09e8e3ddd9
feat: builtin Jsonnet 2020-04-29 17:13:38 +02:00
sh0rez
7308eecaf3
feat: rewrite render 2020-04-29 16:39:37 +02:00
sh0rez
5fbee517fe
feat: inline package declaration
Docsonnet packages previously used to be declared in a `main.docsonnet`.
Because this file basically always contains the same, it is kinda
redundant.

To avoid that, the information from there has been inlined into the main
Jsonnet file, while the parser logic will become part of the Go
application, as embedded Jsonnet.
2020-04-28 23:40:45 +02:00