Skip to content

Commit

Permalink
Add an example; How to load flow.js with RequierJS.
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk committed Feb 1, 2012
1 parent b2d9803 commit d16bb8a
Show file tree
Hide file tree
Showing 3 changed files with 2,079 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# flow.js
Asynchronous flow-control (serial, parallel, repeat, wait, function) module for Node.js, RequireJS, and browser.

## Installation
## Installation (Node.js)

$ npm install nestableflow

Expand Down Expand Up @@ -249,6 +249,17 @@ Set callback `flow.next`.
};
root.start();

### RequierJS

[How to load flow.js with RequierJS](https://github.com/minodisk/flow-js/blob/master/example/require)

<script type="text/javascript" src="require.js"></script>
<script type="text/javascript">
require(['../../lib/flow'], function (Flow) {
console.log(Flow);
});
</script>

## License

Licensed under the [MIT license](https://github.com/minodisk/flow-js/raw/master/LICENSE).
15 changes: 15 additions & 0 deletions example/require/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>How to load flow.js with RequierJS</title>
<script type="text/javascript" src="require.js"></script>
<script type="text/javascript">
require(['../../lib/flow'], function (Flow) {
console.log(Flow);
});
</script>
</head>
<body>

</body>
</html>
Loading

0 comments on commit d16bb8a

Please sign in to comment.