Permalink
Browse files

Docs

  • Loading branch information...
1 parent fa08323 commit 9f06b11eaba9e8eba11b68fb1f2f03ce77bfa299 @tj tj committed Oct 1, 2009
Showing with 9 additions and 9 deletions.
  1. +9 −9 Readme.md
View
18 Readme.md
@@ -2,7 +2,7 @@
# Express
Insanely fast (and small) server-side JavaScript web development framework
- built on node.js and the V8 JavaScript engine.
+ built on **node.js** and the **V8 JavaScript engine**.
* Stay tuned, coming soon :)
@@ -31,38 +31,38 @@
Extensive benchmarking will wait until a development version
has been released. However for simple an average route and response
- body Ruby's Sinatra scored 1454 request per second using Thin, while
- Express scored 2762.
+ body Ruby's Sinatra scored **1454** request per second using Thin, while
+ Express scored **2762**.
## Examples
- // GET /user/tj/edit
+GET /user/tj/edit
get('user/:name/:operation', function(){
param('operation') + 'ing ' + param('name')
})
- // GET /articles
+GET /articles
get('articles', function(){
'list of articles'
})
- // GET /articles/12
+GET /articles/12
get(/articles\/(\d+)/, function(){
'article id ' + captures[1]
})
- // POST /user/:id
+POST /user/:id
post('user/:id', function(){
User.destroy(params('id')) ?
'User deleted' :
'Failed to delete user'
})
- // GET /login
+GET /login
get('login', function() {
'<form method="post" action="/login"> \
@@ -72,7 +72,7 @@
</form>'
})
- // POST /login
+POST /login
post('login', function() {
'Welcome ' + param('user').name

0 comments on commit 9f06b11

Please sign in to comment.