Skip to content
Myr

Misc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent da90452 · Browse files · 1 file+2 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−9 removed

  • other:+2 added−9 removed

1 file+2 added−9 removed

modified:lib/express.core.js+2 added-9 removed
398 unmodified lines
399 },400 401 readFile : function(path, callback, errorCallback) {402 var promise = node.fs.cat(path, "utf8")403 var defaultErrorCallback = function() {403 errorCallback = errorCallback || function(){404 throw "failed to read file `" + path + "'"405 }406 errorCallback = errorCallback || defaultErrorCallback406 promise.addCallback(callback)407 promise.addErrback(errorCallback)408 },409 410 display : function(path) {412 // TODO: parse / remove builder413 // TODO: JS Jack? like rack.. jackjs.org414 var markup = ''415 this.readFile(path, function(contents){416 markup = contents417 })418 return markup411 412 }413 }414 415 get = Express.routeFunctionFor('get')
29 unmodified lines