Replies: 3 comments 1 reply
-
Alternatively, would it make sense to |
Beta Was this translation helpful? Give feedback.
-
You can put your base pkl file somewhere on the internet and then just import via https. Is that what you're looking for? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Both import "https://example.com/path/to/remote/module.pkl"
remoteResource: Resource = read("https://www.example.com/path/to/remote/resource.json") Note that resources fetch over HTTP(S) do not get cached across evaluations. So, calling Pkl will result in an HTTP call every time. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Let's say our platform has defined some standard Pkl class
Foo
to represent some entity in our platform namedFoo
Is it possible to write a Pkl configuration that reads these Foo objects exposed over an API ?
We are mainly unsure what should be the return format of the endpoint
I'm open for suggestions.
Could this text be parsed into a Pkl class instance?
Beta Was this translation helpful? Give feedback.
All reactions