You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sjsonnet is used from Java or as a standalone executable assembly, is there a way to inject native Java functionality (such as Pattern.quote()) to the jsonnet evaluator? i want to be able to execute simple Java code from within the jsonnet/sjsonnet code as can be performed with Python's jsonnet bindings using the evaluate_file function and passing the native_callbacks argument, and being able to invoke these callbacks using std.native(...) from within the jsonnet file.
The text was updated successfully, but these errors were encountered:
Since #166 merged, we should be able to pass in callbacks through the Scala API whether you are using sjsonnet.SjsonnetMain.main0 or sjsonnet.Interpreter. This problem then reduces to needing to provide an idiomatic Java API, which we can track as part of #157
When sjsonnet is used from Java or as a standalone executable assembly, is there a way to inject native Java functionality (such as
Pattern.quote()
) to the jsonnet evaluator? i want to be able to execute simple Java code from within the jsonnet/sjsonnet code as can be performed with Python's jsonnet bindings using theevaluate_file
function and passing thenative_callbacks
argument, and being able to invoke these callbacks usingstd.native(...)
from within the jsonnet file.The text was updated successfully, but these errors were encountered: