You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cscheid - I'm now using environment variables to share configuration information across all the places. I was searching for an option that would let me obtain values in prose, the document title, and executable code.
Environment variables have been sufficient for my needs, as I can use language-specific ways to read them in combination with the {{< env XX >}} shortcode. I've put an example of my approach here: #1237 (comment)
Bug description
Tested with Quarto 0.9.629 (inside RStudio 2022.10.0 Build 9) and 0.9.607 (outside RStudio).
Using an
index.qmd
as a non-project Quarto document:This document expects values set in the
_variables.yml
:When rendering, we get a warning about the unknown variable:
The rendered HTML has the variable reference replaced by
?var:reaction
.Creating an empty
_quarto.yml
is enough to cause this document to be processed as part of a project, and lets the variable get resolved.Checklist
quarto check
in a terminal in your issue?The text was updated successfully, but these errors were encountered: