Skip to content
Commits on May 5, 2012
  1. Adds cowboy_controller:get_var/2 and get_var/3 helpers to retrieve va…

    Yurii Rashkovskii committed May 5, 2012
    …riables stored in request's meta
Commits on May 4, 2012
  1. Adds request dictionary to templates with the bare minimum of request…

    Yurii Rashkovskii committed May 3, 2012
    … values
Commits on May 3, 2012
  1. Improved template error reporting

    Yurii Rashkovskii committed May 3, 2012
  2. cowboy_controller_form:parse/1 variant that accepts request, returns …

    Yurii Rashkovskii committed May 3, 2012
    …new request alongside with the parsed form
  3. Adds primitive form nested inputs parser (cowboy_controller_form:pars…

    Yurii Rashkovskii committed May 3, 2012
    …e/1)
  4. Adds cowboy_controller:set_var/3 helper to memoize variables

    Yurii Rashkovskii committed May 3, 2012
  5. Adds null filter to cowboy_controller_filters.

    Yurii Rashkovskii committed May 3, 2012
    It is an addition to default but for 'null' value
    which ireturned by some database libraries.
  6. Fixes bugs in rendering dispatching

    Yurii Rashkovskii committed May 2, 2012
Commits on Apr 28, 2012
  1. Adds cowboy_controller_routes helper module to simplify building routes.

    Yurii Rashkovskii committed Apr 28, 2012
    Now, one can do something like this:
    
    ```erlang
    {ok, Mode} = application:get_env(myapp, Mode),
    Routes = [
              {[], myapp_ctrl_main, [{action, home}]}
             ],
    Dispatch = [{'_', cowboy_controller_routes:with([{mode, Mode},{app, myapp}],
                                                    Routes) ++
                      cowboy_controller_routes:default()}].
    ```
    
    This way all routes specified in Routes will be designed to run in
    the specified Mode, for myapp application.
    
    Previously this had to be done manually.
  2. Adds {{template, Template}, Opts} format for rendering

    Yurii Rashkovskii committed Apr 28, 2012
  3. Minor cowboy_controlling indentation changes

    Yurii Rashkovskii committed Apr 28, 2012
  4. Initial source code import

    Yurii Rashkovskii committed Apr 28, 2012
Something went wrong with that request. Please try again.