conditional-vars — A Quarto extension for variable-based conditional content
#14476
lsbjordao
started this conversation in
Show and Tell
Replies: 1 comment 3 replies
-
|
Thanks! Few things:
The idea to extend beyond Boolean is a great idea and was requested in the past, mixing |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I built a Quarto extension that conditionally shows or hides content blocks based on document variables values — filling a gap not covered by Quarto's built-in
.when(which is profile-based only).Features:
.when-var/.unless-vardiv classes to show/hide contenttype="detailed|summary")year=">2020",year="<=2023").when-var+.unless-varon the same block{{< show-vars >}}shortcode to display all active params (useful for debugging)Repository: https://github.com/lsbjordao/quarto-conditional-vars
Beta Was this translation helpful? Give feedback.
All reactions