How to add my own config items and how read them in code ? #751
Replies: 1 comment
|
I'm not really sure exactly what you're trying to do. Can you explain the problem more clearly? In general, if you want to pass in information to your frontend at compile time from gradle, you do this: https://kobweb.varabyte.com/docs/concepts/foundation/application-globals (but I don't get the feeling that is what you're asking for)
And if you want to allow users to pick a file which you save to their local storage, then you should read https://kobweb.varabyte.com/docs/concepts/foundation/persisting-state#web-storage But again, it's not clear to me what you're actually trying to do so I'm not sure which piece of advice is relevant here, if any. |
Uh oh!
There was an error while loading. Please reload this page.
I'd like to add a config item say data_root_dir to save application data, how to add it to .kobweb/conf.yaml, and how to read it from my code.
All reactions