Skip to content
Discussion options

You must be logged in to vote

These are all very good questions and I'm afraid I don't have sufficiently firm official answers to give!

  1. What is the best way to set the default values for custom yaml options?

    One approach you might not have considered is to answer a slightly different question: where do you need these default values? Solve the problem there. So, for example, solve the problem by having a Lua object initializer that fills in the default values when they're missing. That's more or less what we do, except that the default values we get come from a variety of different places (sometimes we need to honor cell defaults, sometimes documents or projects), so we don't really have a uniform software solution. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewpbray
Comment options

Answer selected by andrewpbray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
extensions relates to Quarto extensions mechanism lua Issues related to the lua codebase, filter chain, etc
2 participants