Original crate · v0.6.0

SnapFire Web

A templating library for Rust with a built-in live-reload server that needs no configuration. It integrates with Tera 2 and Actix Web.

🔁

Reload with no configuration

Edit a template and the browser reloads. A CSS change in a watch_static directory swaps the stylesheets without a reload. Turn on the devel feature and there is nothing else to set up.

🪶

Removed from release builds

Without the devel feature the build has no file watcher, reload socket or reload script.

🧱

Tera 2 and Actix

It renders Tera 2 templates from Actix Web handlers and adds live reload during development.

Which one do I want?

Use snapfire when the server renders HTML from Tera templates and you want the browser to reload when you save a file. FSR suits a TypeScript application with React pages, where you want the loaders and actions to run in Rust instead of Node.

Both can use the same compiler: SnapFire Compiler builds the browser assets either way.