An open API service indexing awesome lists of open source software.

https://github.com/ripeworks/rackem-sass

SASS middleware for Rack'em
https://github.com/ripeworks/rackem-sass

Last synced: 11 months ago
JSON representation

SASS middleware for Rack'em

Awesome Lists containing this project

README

          

# Rack'em Sass

Rack'em middleware to serve SASS dynamically.

## Usage

```php
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.

| Option | Info | Default |
|--------|------|---------|
| __accepts__ | File extensions used to locate sass source files (order matters). | `array("sass", "scss", "scss.css", "sass.css", "css")` |
| __paths__ | Paths used to locate sass source files (order matters). | `array(".")` |
| __persist__ | If true, will serve compiled css file directly. If source sass file is newer than compiled file, the sass will be re-compiled before being served. | `false` |
| __public__ | Path used to write compiled css if `persist` option is true. | `getcwd()` |
| __parser__ | Array of options passed into `Sass\Parser`. | `array("cache" => false)` |