1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 18:52:50 +00:00

updated package.json

This commit is contained in:
2016-01-04 12:25:28 -05:00
parent 3443c97de4
commit 80ca24a715
1168 changed files with 73752 additions and 26424 deletions

12
node_modules/broadway/examples/browser/app.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
var app = new App();
app.use(HelloWorld, { "delimiter": "!" } );
app.init(function (err) {
if (err) {
console.log(err);
}
});
app.hello("world");

11
node_modules/broadway/examples/browser/index.html generated vendored Normal file
View File

@@ -0,0 +1,11 @@
<html>
<head>
<title>Example</title>
</head>
<body>
<script type="text/javascript" src="broadway.js"></script>
<script type="text/javascript" src="plugins/helloworld.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>

View File

@@ -0,0 +1,23 @@
window.HelloWorld = {};
//
// `exports.attach` gets called by broadway on `app.use`
//
HelloWorld.attach = function (options) {
this.hello = function (world) {
console.log("Hello "+ world + options.delimiter || ".");
}
};
//
// `exports.init` gets called by broadway on `app.init`.
//
HelloWorld.init = function (done) {
//
// This plugin doesn't require any initialization step.
//
return done();
};