Originally created by @alexisvisco on GitHub (Oct 28, 2024).
Hey !
Thanks you for you awesome configuration library, it is pleasant to work with.
I wonder if when filling a template it is possible to say for instance password = env("PG_PASSWORD") ?
Let me explain why : if you want to use this config in production you mght want to use env variables for sensible informations.
Originally created by @alexisvisco on GitHub (Oct 28, 2024).
Hey !
Thanks you for you awesome configuration library, it is pleasant to work with.
I wonder if when filling a template it is possible to say for instance `password = env("PG_PASSWORD")` ?
Let me explain why : if you want to use this config in production you mght want to use env variables for sensible informations.
@alexisvisco commented on GitHub (Oct 28, 2024):
https://pkl-lang.org/main/current/language-reference/index.html#resources
It is possible: `path = read("env:PATH")`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @alexisvisco on GitHub (Oct 28, 2024).
Hey !
Thanks you for you awesome configuration library, it is pleasant to work with.
I wonder if when filling a template it is possible to say for instance
password = env("PG_PASSWORD")?Let me explain why : if you want to use this config in production you mght want to use env variables for sensible informations.
@alexisvisco commented on GitHub (Oct 28, 2024):
https://pkl-lang.org/main/current/language-reference/index.html#resources
It is possible:
path = read("env:PATH")