Hello.
I have been toying with my site recently to try different things. (Inclduing a small wasm package (called via JS) to justify some Arabnic poetry so it looks nice. I also experimented a bit with adding OpenGraph images for each article, but I found that the way to do it now would require a fair bit of processing the site structure outside of zola itself, either before or after zola build.
However, if there was a way for zola (or tera) to call extension functions in the template one could create a wasm module that calls typst (or whatever) , it would be then fairly possible.
speaking of typst, here is their plugin architecture: Plugin Function – Typst Documentation . It is simple from the implementation side, which I have used in a simple plugin (i would link but the forum wouldnt let me, but it uses the same module for kashida as it happens). I did something similar for rustybuzz, implementing the wasm shaper api.
The design question i think, besides whether yall want to go in that direction or not is what functions to expose to wasm, and how to call it from either zola or tera’s side.