0
0
Fork 0
Commit Graph

21 Commits

Author SHA1 Message Date
Gibheer b317b05f90 use new api of class_options 2013-01-28 15:49:53 +01:00
Gibheer 399e0ea338 use class_options for the controller 2013-01-11 16:02:26 +01:00
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 9cea623595 don't overwrite the request 2012-11-29 22:22:50 +01:00
Gibheer 77a2cbe6d4 a small fix to make the controller useable
This is just to use the controller for a demonstration on where this all
is heading to.
2012-11-26 21:38:49 +01:00
Gibheer 06e0dc22e1 transform the response to an array 2012-11-26 21:28:48 +01:00
Gibheer fe7a622120 small minor cleanup
This removes #process and replaces it with some documentation for it.
Also the Rack::Response is replaced with Zero::Response.
2012-11-26 21:24:59 +01:00
Gibheer 4a51048d8b removed doubled line 2012-11-26 21:23:28 +01:00
Gibheer 926775f029 seperated the methods of the basic controller 2012-11-20 20:37:10 +01:00
Gibheer 4e2a4b8931 use Zero::Request instead of the rack one 2012-11-20 20:37:10 +01:00
Gibheer 396151eb70 fixed the documentation 2012-11-08 21:36:56 +01:00
Gibheer 92e199d5db Rack::Response and Rack::Request work pretty good 2012-10-06 20:18:30 +02:00
Gibheer 3ec99843eb switched render with response
The intention is, that everything gets rendered first and after that
packed to a response. This way, error checking on the response can be
done after rendering.
2012-10-05 20:35:34 +02:00
Gibheer 4365b0ff13 changed the way rendering happens 2012-10-05 20:33:19 +02:00
Gibheer f12ceef4a8 added the request as a parameter to the controller 2012-10-05 08:11:34 +02:00
Gibheer 30399df1c7 fixed small error 2012-10-05 08:05:32 +02:00
Gibheer bc34186b23 added some basic structures 2012-10-05 07:54:17 +02:00