11  Parameterizing

Notes on parameterizing Quarto documents.

Useful websites:

We add parameters to the yaml header of the Quarto file. For example, this file has the following yaml header:

---
params:
  test_param: "Hello World!"
---

We can then use that parameter in our markdown like this.

My test parameter says, "`r params$test_param`"

And here is what is rendered: My test parameter says, “r params$test_param”.

Currently, this doesn’ appear to work. However, it did work for the L2C mater table. I’m not sure why. Right now, all I can come up with is that it is some difference between a Quarto book and a Quarto website. Try to figure this out later.