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:
- Mount generic folders (using WASI) in the handler and provide libraries to manage those files
- Add a new
data.folder configuration property that will serve the files directly using the Rust server
The final approach is still under discussion.
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.folderconfiguration property that will serve the files directly using the Rust serverThe final approach is still under discussion.