Feature Request: Logic-less templating for includes #3095
Replies: 2 comments
-
It's an intriguing suggestion! However, we are quite wary of feature creep on I wholeheartedly agree that we need a better story around parameterized documents, but I don't think the best implementation is in terms of the current incarnation of |
Beta Was this translation helpful? Give feedback.
-
Ok, this follow-up suggestion might fly into the face of how things are implemented, but I think it describes the general idea. How about creating a new shortcode evaluated before or at the same rendering step as a regular
Inside of
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I was wondering if logic-less templating for includes would be of interest.
Let's say I have a
parent.qmd
and want to run multiple t-tests by passing variables (referenced maybe by{{< include.var <name> >}}
) into an include of_t_test.qmd
, before any code engines are evaluated.parent.qmd
_t_test.qmd
So, for example ,
{{< include _t_test.qmd data="df" predictor="Species" outcome="Sepal.Length" >}}
would generate the following from_t_test.qmd
and include it inparent.qmd
when rendered:Would a feature like that make sense, or can a similar effect be achieved another way?
Beta Was this translation helpful? Give feedback.
All reactions