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
- Host: GitHub
- URL: https://github.com/ripeworks/rackem-sass
- Owner: ripeworks
- License: mit
- Created: 2013-11-08T17:26:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-08T15:45:03.000Z (almost 12 years ago)
- Last Synced: 2025-02-05T18:02:53.023Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)` |