Skip to content

Can I use Lua to fetch web resources during compilation? #12792

Answered by mcanouil
zachcp asked this question in Q&A
Discussion options

You must be logged in to vote

Are there any examples of doing this,

No examples that I am aware of. You can try to browse the extensions listing:

Note that there is an existing pyodide Quarto extension.

Edit: It seems the Pyodide Quarto extension is downloading things, take a look at https://github.com/coatless-quarto/pyodide/blob/main/_extensions/pyodide/qpyodide.lua#L139-L142

Technically speaking, nothing is blocking you from using any custom YAML key that would contain whatever and use that in your Lua filter (meta) to do whatever you want with it.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@cscheid
Comment options

@zachcp
Comment options

@zachcp
Comment options

@zachcp
Comment options

@cscheid
Comment options

Answer selected by zachcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
extensions relates to Quarto extensions mechanism lua Issues related to the lua codebase, filter chain, etc
3 participants