0
0
Commit Graph

8 Commits

Author SHA1 Message Date
Gibheer
b20c0c527c reuse render for actual rendering
The splitting of rendering and processing is good, but on the other side
it makes some double steps or even introduce workarounds.
That is why I made the method #render just a call to the renderer. This
should help much more than the strict seperation.

The method will only return the resulting string and not add it to the
body of the response. That still has to be taken care of by the user.
2012-12-18 04:24:24 +01:00
Gibheer
2353a579ca initialize the response 2012-12-17 16:29:29 +01:00
Gibheer
7bda0ec7e5 added options to controller
This avoids hardcoding the options into the controller and therefore
should it make possible to use Rack::Request or Sinatra apps as
requests. (That sounds so weird.)
2012-12-13 08:45:03 +01:00
Gibheer
a95f1436c4 replaced .create with .new on Zero::Request 2012-12-12 18:38:46 +01:00
Gibheer
e0919c87e5 define the renderer at initialization 2012-12-10 21:12:45 +01:00
Gibheer
f89ef14687 specs for the renderer access 2012-11-30 16:22:49 +01:00
Gibheer
9cea623595 don't overwrite the request 2012-11-29 22:22:50 +01:00
Gibheer
8e1b79663c added a basic spec for the controller 2012-11-20 20:37:10 +01:00