-
DescriptionI have a document in which there are identical sections (think like a report which covers different industries but each section has the same content, e.g. Banks, Health Care, TechCom). What I want to achieve is that I have a main.qmd file and a _child_industry.qmd file, the latter being re-used within the main.qmd to render all different industries. I'm working on Python and have attempted to add the following to my _child_industry.qmd, based on what I saw in the documentation:
In main.qmd I've tried variations of the following: {{< include _child_industry.qmd -P industry:"Banks" >}} but it doesn't seem to work, I always get "Default" instead of "Banks" when I preview the document. Is there something I'm missing, or is this something not supported? I'm working in corporate infrastructure, latest version I have available is 1.3.353 on Ubuntu 20.04, Python 3.10. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. This being said, parameters are provided from the command line as documented: https://quarto.org/docs/computations/parameters.html You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
Thanks for the added context which helped understand your use case.
Parameters are for document nothing else.
1.4.553 is a pretty old version, you really should consider upgrading to 1.6.42.
Take a look at the
partials
extension.In general, there are more than 200 Quarto extensions, so worth to take a look: https://m.canouil.dev/quarto-extensions/