A blazingly fast template for web development in Rust with HTMX. This template aims to keep complexity low.
Simply do cargo run
or sh watch.sh
for local development.
CSS bundles are generated on each compilation.
A running version of this template can be seen at aaha.rellfy.com.
Assets loaded into memory and served statically on /assets
.
Assets in assets/artifacts/
are build artifacts and gitignored.
For example, the output CSS file.
Server endpoints, for both API and pages. Since the template is for HTMX, the API endpoints would return HTML instead of e.g. JSON.
SCSS styles.
On build, using the build.rs
script, these are bundled into the
output CSS file at assets/artifacts/bundle.css
.
Askama templates.
The directory is split into components/
, layouts/
and pages/
.