Skip to content
Myr

Started views

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

authored by visionmedia · committed by visionmedia · parent bf79dd9 · Browse files · 6 files+26 added−13 removed
This commit

State

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

Diff stats

6 files+26 added−13 removed

  • tests:+9 added−9 removed
  • other:+17 added−4 removed

6 files+26 added−13 removed

deleted:lib/express.builder.js-4 removed
modified:lib/express.core.js+11 added
404 unmodified lines
405 else throw "failed to read file `" + path + "'"406 else 407 callback(content)408 })409 },410 411 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 markup419 }420 }421 422 get = Express.routeFunctionFor('get')
12 unmodified lines
435 return param('operation') + 'ing ' + param('name')436})437438get('articles', function(){439 display('spec/data/example.html.js')440 return 'list of articles'441})442443get(/articles\/(\d+)/, function(){
8 unmodified lines
added:lib/express.view.js+1 added
deleted:spec/data/builder.html.js-9 removed
added:spec/data/example.html.js+9 added
modified:README.rdoc+5 added
17 unmodified lines
18 * param key substitution19 * pre-conditions20 * etc2122== Coming Soon2324* View templating system25* Jack integration2627== Examples2829 // GET /user/tj/edit30
46 unmodified lines