Original crate · v0.5.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 or a static asset and the browser reloads. The reload server is built into the library, so there is nothing extra to set up.

🪶

Removed from release builds

The development features compile out of a release build. The release binary has no file watcher, reload socket or reload script.

🧱

Tera 2 and Actix

It adds live reload to Tera and Actix Web during development. In production it adds nothing.

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.