pkl
pkl copied to clipboard
TOML support
Hi, just came here to check Pkl out. Unless it's hidden somewhere, I didn't see TOML being supported as an output format. Would it be possible to add TOML support?
Thanks!
Hi, at the moment, TOML support is implemented via a package, rather than in the standard library.
https://pkl-lang.org/package-docs/pkg.pkl-lang.org/pkl-pantry/pkl.toml/current/index.html
You can render TOML via:
import "package://pkg.pkl-lang.org/pkl-pantry/[email protected]#/toml.pkl"
output {
renderer = new toml.Renderer {}
}
Thank you for the link. Please consider adding TOML to a future version of the CLI to make generating TOML files easier.
toml is extremely popular configuration/interchange format. Kindly do consider it adding it in the mainstream code
We're working on it!