Permalink
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...
1 parent d3fee33 commit bca07487a48ce5da7b46ff1146ee837242602a43 @davglass davglass committed Nov 20, 2010
View
@@ -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
@@ -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');
+});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bca0748

Please sign in to comment.