0.0.5 • Published 8 years ago

dbservestyl v0.0.5

Weekly downloads
9
License
ISC
Repository
github
Last release
8 years ago

dbservestyl - Serve .styl files as .css

######Example:

"use strict";

const dbservestyl = require('dbservestyl');
const express = require('express');
const path = require('path');

let app = new express();

app.use('/css', function(req, res, next) {
  let index = path.join(__dirname, "/www/css");
  let fn = dbservestyl(index);

  fn(req, res, next);
});

app.use('/', function(req, res, next) {
  let index = path.join(__dirname, "/www");
  let fn = express.static(index);

  fn(req, res, next);
});

app.listen(8080);
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago