rackem/sass
Composer 安装命令:
composer require rackem/sass
包简介
Sass middleware for Rackem
README 文档
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.
| 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) |
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-20