2 ms·
Cool small example. It's helpful to have the actual cli commands on hand. There's just a small typo. The script path in the HTML mount file and the router path
by mzzter 9y ago
Cool small example. It's helpful to have the actual cli commands on hand.
There's just a small typo. The script path in the HTML mount file and the router path need to be the same, but do not match. Either one needs to change:
// ui/dist/index.html
<script src="/main.js"></script>
// src/main.rs
(GET) ["/bundle.js"] => {
Response::text(bundle)
},
- anderspitman 9y agoWhat I really need is a tool to generate blog-post code snippets from actual code ;) Thanks, fixed!