Skip to content
Myr

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

2 files+0 added−91 removed

deleted:History.rdoc-4 removed
12=== 0.0.1 / YYYY-MM-DD34* Initial release
deleted:README.rdoc-87 removed
12= Express34Insanely fast (and small) server-side JavaScript web development framework5built on node.js and the V8 JavaScript engine.67* Stay tuned, coming soon :)89== Features (so far)1011* 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 * etc2324== Coming Soon2526* View templating system27* Jack integration2829== Examples3031 // GET /user/tj/edit32 33 get('user/:name/:operation', function(){34 param('operation') + 'ing ' + param('name')35 })3637 // GET /articles38 39 get('articles', function(){40 'list of articles'41 })4243 // 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== Headers5859 get ('foo', function(){60 header('Content-Type', 'text/html')61 '<p>bar</p>'62 })6364== License 6566(The MIT License)6768Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>6970Permission is hereby granted, free of charge, to any person obtaining71a copy of this software and associated documentation files (the72'Software'), to deal in the Software without restriction, including73without limitation the rights to use, copy, modify, merge, publish,74distribute, sublicense, and/or sell copies of the Software, and to75permit persons to whom the Software is furnished to do so, subject to76the following conditions:7778The above copyright notice and this permission notice shall be79included in all copies or substantial portions of the Software.8081THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,82EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF83MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.84IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY85CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,86TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE87SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.