droptype/proto — pull request #13 by alexcabrera (2012-11-14 17:33:14+00:00)
Title: Feature/local static

Hacked in support for serving static files locally. This is meant for libraries that are used across projects (jquery, underscore, reset.css).

Libraries are assumed to be stored in `~/.proto/lib` and are served using relative paths from that directory. For example, `css/reset.css` would be served from `~/.proto/lib/css/reset.css`.

> Note: Currently,the full path to this directory is hardcoded (`/Users/alexcabrera/.proto/lib`). No node.js documentation (or dignity) available on Spirit Air.

The mime-type is set by default to `application/oclet-stream`, and conditionally set to `text/css` or `text/javascript` based on the file extension.

> Note: When reading files, encoding is hardcoded as `utf8`; this will need to be changed to support images and other binary files*