mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Provide a Pkl renderer #290
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bioball on GitHub (Feb 27, 2025).
There should be a renderer that renders Pkl output.
Use-cases:
Imagined usage:
Rendered module should be importable in Pkl, and be logically equivalent to
someValue.Output would not retain programming constructs like for/when/amends chains.
@bsideup commented on GitHub (Jul 9, 2025):
I hope the PKL renderer would also allow to "compile" it (e.g. resolve and inline all imports) into a single PKL file for "offline" distribution of it.
I am aware of #994 which potentially could solve that too, but wanted to explicitly point out the use case 👍
PCF was considered as an alternative but it does not support functions and other constructs, making it "too constant"