Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
pmh committed Sep 26, 2010
1 parent 1e3b2ad commit 3042a53
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# funkyweb

NOTE: funkyweb is in WIP and is not production ready
NOTE: funkyweb is WIP and is not production ready

funkyweb is a clojure web framework with route inference. It uses the
name of the controller and actions to generate routes and url helpers.
Expand Down Expand Up @@ -190,7 +190,7 @@ Returning a map gives you full control over the response
(GET with-map []
{:status 200 :headers {:content-type "text/html} :body "foo"})

#### Custom error handlers
### Custom error handlers

The error function let's you create custom error handlers, it takes a
status code and a body
Expand Down Expand Up @@ -245,6 +245,17 @@ query-string, qs
(GET index []
(str "foo = " (query-string :foo)))

#### Flash

flash-set

(GET index []
(flash-set :notice "this is a notice"))

flash-get

(GET some-route []
(flash-get :notice))

#### Cookies

Expand Down Expand Up @@ -278,12 +289,6 @@ session-get

(session-get :foo)

alter-session
- takes a function and any number of arguments

(alter-session dissoc :foo)
(alter-session assoc :foo "bar")

## Server

server
Expand Down

0 comments on commit 3042a53

Please sign in to comment.