Skip to content

Can I specify a supported version of the Pkl language? #274

Answered by bioball
fumito-ito asked this question in Q&A
Discussion options

You must be logged in to vote

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.

output {
  renderer = new PListRenderer {}
}

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fumito-ito
Comment options

Answer selected by fumito-ito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants