Skip to content

Instantly share code, notes, and snippets.

@ericf
Forked from jshirley/app.js
Created May 23, 2012 16:19
Show Gist options
  • Save ericf/2776187 to your computer and use it in GitHub Desktop.
Save ericf/2776187 to your computer and use it in GitHub Desktop.

Revisions

  1. ericf revised this gist May 23, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion app.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    var YUI = require('yui').YUI,
    Y = YUI();
    Y = YUI({useSync: true});

    Y.use('parallel');

  2. @jshirley jshirley created this gist May 23, 2012.
    6 changes: 6 additions & 0 deletions app.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var YUI = require('yui').YUI,
    Y = YUI();

    Y.use('parallel');

    require('./second');
    2 changes: 2 additions & 0 deletions output.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    $ node app.js
    Type of Y.Handlebars: undefined
    3 changes: 3 additions & 0 deletions second.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var Y = require('yui/handlebars');

    console.log('Type of Y.Handlebars: ' + typeof Y.Handlebars );