How to call java code from pkl? #1355
Unanswered
jo-devnull
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Wow that's a really fun idea!! If you eventually publish the source somewhere I'd love to see it. The most straightforward way to go about this is probably using resources: https://pkl-lang.org/main/current/language-reference/index.html You can implement a custom One limitation to note here is that Pkl caches resources: if you read some URI multiple times, the runtime will return the cached value from the first call's result instead of calling your reader again. This may not be desirable for your usage. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm embedding pkl in a Minecraft mod and so far i'm able to successfully run any pkl file and collect the module output to process in java. Now, i want to be able to call some static java method from some class inside a pkl script. I tried to look it up but i did not find any documentation on how to call java from pkl. How should i proceed?
Beta Was this translation helpful? Give feedback.
All reactions