This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myApp = new Backbone.Marionette.Application(); | |
| var childModuleName = 'MainModule'; | |
| myApp.module(childModuleName, MainModule); | |
| function MainModule (module, parent, Backbone, Marionette, $, _) { | |
| var childModuleName = this.moduleName + '.foo'; | |
| this.app.module(childModuleName, Foo, childModuleName); | |
| function Foo (module, parent, Backbone, Marionette, $, _, moduleName) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define([ | |
| 'class1', | |
| 'class2', | |
| // non-returning modules | |
| 'jqueryplugin1', | |
| 'jqueryplugin2' | |
| ], function ( | |
| Class1, | |
| Class2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var cp = require('child_process'); | |
| var connect = require('connect'); | |
| var command = 'mplayer.exe track.mp3'; | |
| var app = connect() | |
| .use(connect.favicon()) | |
| .use(function(req, res){ | |
| cp.exec(command, {}, function(err, stdout, stderr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| dsm("Hello World!"); | |
| function myFunction($node){ | |
| print $node->title; | |
| } | |
| ?> |
NewerOlder