Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunsided/htmx-askama-axum-shuttle
Testing htmx and askama on axum via Shuttle
https://github.com/sunsided/htmx-askama-axum-shuttle
askama axum htmx rust server-sent-events shuttle shuttle-rs sqlx
Last synced: 14 days ago
JSON representation
Testing htmx and askama on axum via Shuttle
- Host: GitHub
- URL: https://github.com/sunsided/htmx-askama-axum-shuttle
- Owner: sunsided
- Created: 2023-11-19T22:14:56.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T14:45:16.000Z (7 months ago)
- Last Synced: 2024-04-14T12:21:58.968Z (7 months ago)
- Topics: askama, axum, htmx, rust, server-sent-events, shuttle, shuttle-rs, sqlx
- Language: Rust
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# htmx / askama + axum on Shuttle
An experiment with [htmx] and [askama] served with axum using Shuttle.
```shell
cargo shuttle run
```## Server-Sent Events
Visit `http://127.0.0.1:8000/stream` to see a stream of server-sent events.
[askama]: https://docs.rs/askama/0.12.1/askama/
[htmx]: https://htmx.org/## Sources & Further reading
See [htmx, Rust & Shuttle: A New Rapid Prototyping Stack] by Joshua Mo, the blog post that inspired this experiment.
[htmx, Rust & Shuttle: A New Rapid Prototyping Stack]: https://www.shuttle.rs/blog/2023/10/25/htmx-with-rust