Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! I fixed some calls to "sys" for you! #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/compile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var sys = require ('sys')
var util = require('util')

function substitute_affectation(str, p1, offset, s) {
//console.log(sys.inspect(p1))
//console.log(util.inspect(p1))
var split = p1.split('|');
var str = split.shift();
if(split.length == 0) {
Expand All @@ -26,7 +26,7 @@ function substitute_affectation(str, p1, offset, s) {
+ str
+ parenthesis
+ ');%>';
//sys.debug(result);
//util.debug(result);
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var fs = require('fs');
var path = require('path');
var sys = require('sys');
var util = require('util');
var Stream = require('stream').Stream;
var Script = process.binding('evals').Script;
var process_template = require('./compile');
Expand All @@ -12,7 +12,7 @@ var Template = function Template(filename, data) {
this._buffers = [];
this._data = data;
}
sys.inherits(Template, Stream);
util.inherits(Template, Stream);

Template.prototype.sandbox = function sandbox(object) {
this.sandbox = object || {};
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env node

var sys = require('sys'),
var util = require('util'),
blue = require('./lib/blue');
var t = new blue.Template('example/main.tpl');
t.on('data', function(data) {
sys.print(data);
util.print(data);
});
t.data({require:require});
t.run();
Expand Down