Can I specify a supported version of the Pkl language? #274
-
Hi team ! I have just released a module to generate type-safe I would like to express the version of the Pkl language supported by this module in the code, is there a proper way to do this? I often see expressions like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, yes, that annotation is how you express the version of the Pkl language supported by your code. And, awesome! This looks pretty good! I'd recommend setting an output renderer in your template.
That way, you can avoid needing to use the It also means that someone can use your module and render it to plist just calling |
Beta Was this translation helpful? Give feedback.
Hi, yes, that annotation is how you express the version of the Pkl language supported by your code.
And, awesome! This looks pretty good!
I'd recommend setting an output renderer in your template.
That way, you can avoid needing to use the
-f
flag when rendering.It also means that someone can use your module and render it to plist just calling
output.text
, regardless of whether the-f
flag was set or not.