Replies: 1 comment 2 replies
-
Have you considered using Git submodules using the same structure as extensions embedding works? It should be completely transparent for Quarto and users. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Description
I have a series of components that I want to use across multiple extensions. However, these components will not be exposed to user. Instead, they'll be used within the extension. The goal of versioning the components in this way is to allow for targeted upgrades.
To that end, I wrote an experiment a few months back called
{quarto-dependson}
that nests a dependency underneath an existing extension. Before I go further, I'm interested in learning:Planned nesting structure
The
dependson
project is structured in the following manner:. ├── example.qmd ├── _extensions │ └── dependson │ ├── dependson.lua │ ├── _extensions │ │ └── coatless-quarto │ │ └── thedependency │ │ ├── _extension.yml │ │ └── thedependency.lua │ ├── _extension.yml │ ├── next-level │ │ └── nested.lua │ └── same-directory.lua └── README.md
Inside of the
_extension.yml
, we then have:To access the Lua filter, I'm then using a relative Lua path load into where the extension is:
Then, function exported in the filter's table can be accessed with:
Beta Was this translation helpful? Give feedback.
All reactions