Skip to content
Myr

Removed start of crappy templating, going to create an external library

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

authored by visionmedia · committed by visionmedia · parent 651f4ab · Browse files · 1 file+2 added−6 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−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:lib/express.core.js+2 added-6 removed
406 unmodified lines
407 promise.addErrback(errorCallback)408 },409 410 parseView : function(contents, context) {411 return contents.replace(/\{(.*?)\}/gm, function(_, js){412 return eval('with(Express) { with (context || {}){ ' + js + ' }}')413 })411 412 },413 414 display : function(path) {417 this.readFile(path, function(content){418 p(Express.parseView(content))419 })415 416 }417 }418 419 get = Express.routeFunctionFor('get')
32 unmodified lines