Docs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by visionmedia · committed by visionmedia · parent c61372b · Browse files · 2 files·+0 added−91 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+0 added−91 removed
- other:+0 added−91 removed
Provenance
- Commit
631ef3e- Tree
5a4f5cd- Author
visionmedia <tj@vision-media.ca>- Committer
visionmedia <tj@vision-media.ca>- Parent
c61372b
2 files changed+0 added−91 removed
deleted:History.rdoc-4 removed
1-2-=== 0.0.1 / YYYY-MM-DD3-4-* Initial releasedeleted:README.rdoc-87 removed
1-2-= Express3-4-Insanely fast (and small) server-side JavaScript web development framework5-built on node.js and the V8 JavaScript engine.6-7-* Stay tuned, coming soon :)8-9-== Features (so far)10-11-* Sexy DSL12-* Mime helpers13-* Nested parameter parsing (user[name]=tj == { user : { name : 'tj' }})14-* Full test coverage15-* Cookie support16-* Non polluting (so you can use it with your fav JavaScript libraries :) )17-* Routing18- * string matching19- * regexp with captures20- * param key substitution21- * pre-conditions22- * etc23-24-== Coming Soon25-26-* View templating system27-* Jack integration28-29-== Examples30-31- // GET /user/tj/edit32- 33- get('user/:name/:operation', function(){34- param('operation') + 'ing ' + param('name')35- })36-37- // GET /articles38- 39- get('articles', function(){40- 'list of articles'41- })42-43- // GET /articles/1244- 45- get(/articles\/(\d+)/, function(){46- 'article id ' + captures[1]47- })48- 49- // POST /user/:id50- 51- post('user/:id', function(){52- User.destroy(params('id')) ? 53- 'User deleted' :54- 'Failed to delete user'55- })56- 57-== Headers58-59- get ('foo', function(){60- header('Content-Type', 'text/html')61- '<p>bar</p>'62- })63-64-== License 65-66-(The MIT License)67-68-Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>69-70-Permission is hereby granted, free of charge, to any person obtaining71-a copy of this software and associated documentation files (the72-'Software'), to deal in the Software without restriction, including73-without limitation the rights to use, copy, modify, merge, publish,74-distribute, sublicense, and/or sell copies of the Software, and to75-permit persons to whom the Software is furnished to do so, subject to76-the following conditions:77-78-The above copyright notice and this permission notice shall be79-included in all copies or substantial portions of the Software.80-81-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,82-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF83-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.84-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY85-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,86-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE87-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.