rackem / sass
Sass middleware for Rackem
v0.2
2014-04-08 15:47 UTC
Requires
- rackem/rackem: @stable
- richthegeek/phpsass: @stable
This package is not auto-updated.
Last update: 2024-11-18 16:47:53 UTC
README
Rack'em middleware to serve SASS dynamically.
Usage
<?php # config.php // Rack up the middleware and you are good to go! \Rackem::use_middleware(new \Rackem\Sass()); // or map to a specific path \Rackem::map("/css", function($env) { $sass = new \Rackem\Sass\Environment(); $sass->append_path("src/sass"); return $sass->call($env); });
Options
You can pass an options array()
with the middleware, or to a Rackem\Sass\Enviroment
instance.