-
Notifications
You must be signed in to change notification settings - Fork 41
Support static assests in handlers #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a relevant feature for moderm websites. This will allow to build and publish complete websites without having to inject CSS, HTML or JS static code into the wasm compiled binary. In the end, we will implement this by using a third approach: create a The
Wasm Workers Server will init the following routes:
This convert |
After revisiting it, we plan to allow only a root
Will be the same as:
To keep the usage simple, we will focus on the single |
Instead of |
As part of this feature, we should also support static |
Some handlers return HTML code that may require static assets such as JavaScript (client-side) and CSS. Currently, it can be injected in the handler, however is much more convenient to provide a way to set static files.
We can provide this feature using two approaches:
data.folder
configuration property that will serve the files directly using the Rust serverThe final approach is still under discussion.
The text was updated successfully, but these errors were encountered: