sass-rocket-fairing
is a Fairing/middleware for rocket.rs facilitating sass compilation. It compiles your sass files on change automagically ✨
Add the following to your Cargo.toml file
toml
sass-rocket-fairing = "0.1"
OR using git
toml
sass-rocket-fairing = {version = "0.1", git="https://github.com/SyedAhkam/sass-rocket-fairing.git"}
```rs
extern crate rocket;
use sassrocketfairing::SassFairing;
fn rocket() -> _ { rocket::build().attach(SassFairing) } ```
SassFairing
takes advantage of rocket's advanced configuration system. There are two ways to configure it.
toml
[default]
sass_dir = "static/sass"
css_dir = "static/css
sass_dir
is the folder where your sass files are to be located.
css dir
is where your built css files are to be located.
I've stolen a big chunk of code from rocketdyntemplates and adapted it to my needs.
Feel free to send me a pull request! My code might be a little iffy but that's because I'm new to the rust ecosystem.
Licensed under the most permissive license, MIT.