-
I've written a document with asciidoc, which allows you to embed raw HTML. I'd like to write some little interactive widgets in the page using Yew and then embed them, but have the "main" document still be asciidoc. Something like this:
So that the big WASM bundle is only included once, and then the components are instantiated in different places. Is something like that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I got this to work. Basically do this:
When Trunk inlines the asciidoc HTML it helpfully strips the |
Beta Was this translation helpful? Give feedback.
I got this to work. Basically do this:
div
s for where you want to insert the components:Trunk.toml
to run Asciidoc:index.html
add the HTML inline:fn main()
: