rackem/sass

Sass middleware for Rackem

v0.2 2014-04-08 15:47 UTC

This package is not auto-updated.

Last update: 2024-12-16 17:06:48 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.