Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added sync examples and renamed lib files to help with possible confl…

…icts if require.paths happens to include the local ./lib dir
  • Loading branch information...
commit bca07487a48ce5da7b46ff1146ee837242602a43 1 parent d3fee33
@davglass davglass authored
View
23 examples/sync-module.js
@@ -0,0 +1,23 @@
+#!/usr/bin/env node
+
+var YUI = require("yui3").YUI;
+
+YUI.loadSync = true;
+
+YUI({
+ filter: 'debug',
+ _logExclude: {
+ 'attribute': true,
+ 'base': true,
+ 'get': true,
+ 'loader': true,
+ 'yui': true,
+ 'widget': true,
+ 'event': true
+ },
+ debug: true
+}).use('yql', function(Ysync) {
+
+ module.exports = Ysync;
+
+});
View
7 examples/sync.js
@@ -0,0 +1,7 @@
+#!/usr/bin/env node
+var Y = require('yui3').useSync('yql');
+
+Y.YQL('select * from github.user.info where (id = "davglass")', function(r) {
+ //Do something here.
+ Y.log(r.query, 'debug', 'yql');
+});
View
0  lib/express.js → lib/yui-express.js
File renamed without changes
View
0  lib/dom.js → lib/yui3-dom.js
File renamed without changes
View
0  lib/io.js → lib/yui3-io.js
File renamed without changes
View
0  lib/node.js → lib/yui3-node.js
File renamed without changes
View
0  lib/parallel.js → lib/yui3-parallel.js
File renamed without changes

0 comments on commit bca0748

Please sign in to comment.
Something went wrong with that request. Please try again.