diff --git a/master/classes/Jsonnet.html b/master/classes/Jsonnet.html index 3859678..9bd4044 100644 --- a/master/classes/Jsonnet.html +++ b/master/classes/Jsonnet.html @@ -1,5 +1,5 @@
Static
Readonly
versionReturns the version of linked libjsonnet.
-Adds a path to the list of include paths. Paths added more recently take precedence.
+Static
Readonly
versionReturns the version of linked libjsonnet.
+Evaluates a Jsonnet script in a file and returns a number of named JSON's.
+Evaluates a Jsonnet script in a file and returns a number of JSON's.
+Evaluates a Jsonnet script given as a string.
+Evaluates a Jsonnet script given as a string and returns a number of named JSON's.
+Evaluates a Jsonnet script given as a string and returns a number of named JSON's.
Jsonnet script to evaluate.
Optional
filename: stringFilename used for error reporting.
A Promise for the evaluation result in JSON representation.
-Evaluates a Jsonnet script given as a string and returns a number of JSON's.
+Evaluates a Jsonnet script given as a string and returns a number of JSON's.
Jsonnet script to evaluate.
Optional
filename: stringFilename used for error reporting.
A Promise for the evaluation result in JSON representation.
-Registers a native callback function.
+Registers a native callback function.
Name of the callback function.
The function to register as a callback.
fun
can return an Object as the callback result or a Promise for it.
@@ -67,12 +67,12 @@
params
must have the equal number of elements as the number of the parameters of fun
.
const jsonnet = new Jsonnet();
jsonnet.nativeCallback("add", (a, b) => Number(a) + Number(b), "a", "b");
jsonnet.evaluateSnippet('std.native("add")(2, 3)')
.then(result => console.log(JSON.parse(result))); // => 5
-Generated using TypeDoc
Generated using TypeDoc
-Jsonnet
is a Jsonnet interpreter. It has a fluent interface: all the setter methods modify the receiver and return it.