Skip to content

How to produce a file to the _files directory within a shortcode? #13225

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

You must be logged in to vote

Note that there is no "best practices" so you can do whatever you want.

Quarto LUA API provides a base64 function if you go that road.

QUARTO_PROJECT_OUTPUT_DIR should be available in LUA filters.

Alternatively, you could also generate the content in a directory inside the project, Quarto should automatically add it to the resources if it is used.
If not, you can also add it explicitly to project resources.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rchaput
Comment options

@mcanouil
Comment options

Answer selected by rchaput
@rchaput
Comment options

@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
lua Issues related to the lua codebase, filter chain, etc
2 participants