Permalink
Browse files

Adding initialise example to readme

  • Loading branch information...
1 parent fe5178b commit 351120ce633dba99081c591e4edd86757f4f261d @serby committed Jun 25, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -30,8 +30,17 @@ module.exports = {
app.js
```js
+
var bundled = require('bundled')(app);
bundled.addPath('bundle/hoozit');
+bundled.initialize(function(error) {
+ if (error) {
+ // Something went wrong
+ return
+ }
+ // All bundles initialized successfully
+});
+
```
* You can add as unlimited properties to a bundle and retrieve them later using:

0 comments on commit 351120c

Please sign in to comment.