https://github.com/yosssi/koa-stylus
Stylus middleware for Koa
https://github.com/yosssi/koa-stylus
Last synced: about 1 month ago
JSON representation
Stylus middleware for Koa
- Host: GitHub
- URL: https://github.com/yosssi/koa-stylus
- Owner: yosssi
- License: mit
- Created: 2013-12-23T13:18:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T02:08:26.000Z (about 8 years ago)
- Last Synced: 2024-11-14T10:07:12.272Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 12
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-koa - koa-stylus - Stylus中间件。   (仓库 / 中间件)
README
# koa-stylus
Stylus middleware for Koa
## Installation
```js
$ npm install koa-stylus
```## Options
See [the Stylus middleware document](https://learnboost.github.io/stylus/docs/middleware.html).
## Example
```js
var stylus = require('koa-stylus');
var serve = require('koa-static');
var koa = require('koa');
var app = koa();app.use(stylus('./public'));
app.use(serve('./public'));
app.listen(3000);
```## License
MIT