Best approach to put togother a presentation from multiple files (pre-render? shortcode?) #14554
Replies: 1 comment
-
|
Write a pre-render script in whatever languages (lua, bash, typsescript, R, python) or Lua filters/shortcodes. The native "include" shortcode runs before anything and is not in Lua.
Yes it can, but you might need to have at least a "placeholder" file. Note that, as documented, the include shortcode will copy/paste everything from your files, including YAML header which might overwrite each other (last wins). You can look at other extensions to get inspired (in respect to the licenses): https://m.canouil.dev/quarto-extensions/ For examples, the following two extensions are close to the native include shortcode: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
I have the following file structure:
Now I would like to put together a presentation (revealjs) from this. Doing it manually would look like this:
(or similar, the final structure might be subject to some more fiddeling).
But I dont want to do it manually (having to maintain the central
slides.qmdfile and also risking errors in tha manual putting together), I want to automate this.Two approaches I thought of:
Are my assumptions correct? Maybe there is a way around this and one of these approaches acually would work?
Or are there other good ways of doing this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions