Browse files

more usage info in the readme

  • Loading branch information...
1 parent 0966fdd commit d93b87b0968f6ce07b243dfe39f56640a3da3613 @substack committed May 27, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.markdown
View
8 README.markdown
@@ -6,8 +6,16 @@ Middleware for browserify to load non-js files like templates.
methods
=======
+````javascript
+var express = require('express'); // or connect, whatevs
+var app = express.createServer();
var browserifyFile = require('browserify-file');
+var bundle = browserify();
+bundle.use(browserifyFile);
+app.use(bundle)
+````
+
browserifyFile(name, dir, ext)
------------------------------

0 comments on commit d93b87b

Please sign in to comment.