var fs = require('fs');
var myNumber = undefined;
function addOne(callback) {
fs.readFile('number.txt', function doneReading(err, fileContents) {
myNumber = parseInt(fileContents);
myNumber++;
callback();
});
}
function logMyNumber() {
console.log(myNumber);
}
addOne(logMyNumber);
locals =
'test': 'teeest'
fn = jade.compileFile '../src/test.jade', {}
html = fn locals
console.log html -> <body><h1>teeest</h1></body>
Resource interpreted as Stylesheet but transferred with MIME type text/html