hackerschool/Morsel.jl — pull request #2 by danielmendel (2013-04-22 21:15:29+00:00)
Title: Adds with blocks for route specific middleware

Kind of gross, but it lets us do this:

```.jl
auth = Morsel.Midware() do req, res
req.state[:auth] = true
req, res
end

author = Morsel.Midware() do req, res
req.state[:auth] = false
req, res
end

namespace(app, "/auth", auth) do app
get(app, "/private") do req, res
"$(req.state[:auth])"
end
with(app, author) do app
get(app, "/author") do req, res
"$(req.state[:auth])"
end
end
end
```