My dive into #Rust and its web ecosystem continues. This time, I'm using #Axum to serve HTML from an endpoint and sending static files from a directory.

The IDE I'm using is #JetBrains #RustRover.

Note: Cool features from RustRover include automatic dependency refresh, HTML Language injection, and a built-in browser in the IDE (via plug-in), not to mention really good language support.

@khalidabuhakmeh I would highly recommend using Askama for templates instead of dealing with strings :D

https://djc.github.io/askama/askama.html

Askama - Askama

@mo8it @khalidabuhakmeh@mastodon. Just tinkered with #askama, #axum and #htmx while being sick at home. On the first impression askama works well for me.
@mo8it especially, compile time checks of variables used in the #html templates. #askama #rust