fab.static

0.1.0 • Public • Published

fab.static.js

Stream static files:

var fab = require('fab') // from npm, local dir, whatever
fab.static = require('fab.static')

with(fab)

(fab)
  (route, /^\/javascripts/)
    (route, /^\/(.*)/)
      // Stream javascript files from ./public/js
      (static, "public/js", "text/javascript", "js") 
    ()
    ('Not found!')
  ()
()

Development

Run this in the main directory to compile coffeescript to javascript as you go:

coffee -wc -o lib --no-wrap src/**/*.coffee

Readme

Keywords

none

Package Sidebar

Install

npm i fab.static

Weekly Downloads

8

Version

0.1.0

License

none

Last publish

Collaborators

  • technoweenie