Commit graph

31 commits

Author SHA1 Message Date
Gered 69d2e0ef1f bump version for development 2016-06-27 18:59:10 -04:00
Gered 9dd10e6cc7 version 0.1.1 2016-06-19 14:59:46 -04:00
Gered 4ef6cdeb9c change ->url to join all arguments together as strings 2016-06-19 14:59:35 -04:00
Gered e543af99f3 update hook-browser-navigation! to better allow re-initialization
e.g. this is useful when using figwheel where you might have a call to
hook-browser-navigation! in your page-load initialization. before,
repeated calls to hook-browser-navigation! in this kind of scenario
would result in some javascript errors after the first figwheel reload.
2016-06-17 14:26:53 -04:00
Gered 9d045ea523 version 0.1 2016-06-16 13:34:15 -04:00
Gered 4f08c1c2a1 add hiccup page html helper
basically same idea as hiccup's existing html5 function, but includes
some conditional html designed to work in conjunction with some of the
clojurescript utility functions to detect whether an old IE version
is in use, or lack of websockets support, etc.
2016-06-13 12:18:14 -04:00
Gered 8d65b78703 add various clojurescript utility functions 2016-06-13 12:16:05 -04:00
Gered c2a0531f2d version 0.0.2 2016-04-30 16:17:04 -04:00
Gered 3413527b16 oops, how silly of me. forgot to rename this directory ... 2016-04-30 16:16:43 -04:00
Gered a80a62c4db rename project 2016-04-30 14:27:37 -04:00
Gered 457afba989 update dependencies 2016-01-25 13:06:03 -05:00
Gered bb8cd87475 better default checked route error handlers 2015-02-14 21:05:22 -05:00
Gered 28377f0ef2 double negatives are bad 2015-02-14 20:27:45 -05:00
Gered faecfe712d fix check for whether the fail-response needs to be returned 2015-02-14 20:25:56 -05:00
Gered bd8c88d0d4 comment adjustments 2015-02-14 20:25:30 -05:00
Gered 096fd8fad5 use a blank string for empty body instead of nil
otherwise the string "null" ends up used as the response body
2015-02-14 20:14:22 -05:00
Gered 4eab47cbdd rename and make set-validation-error utility function public 2015-02-14 18:12:03 -05:00
Gered bc9e2a8912 add ability for checked failure handling to get validation errors list
'validate' functions now add params to the request under
:validation-errors when validations fail. if the fail-response used
is a function, the request that gets passed in is the last request
map that was used in the most recent validation instead of the original
2015-02-14 18:09:32 -05:00
Gered 228a2eff39 split out session helpers into separate namespace
mainly done for code readability. nicer to alias the namespace
separately and be able to write code like

    (session/assoc :foo "bar")

instead of

    (response/session-assoc :foo "bar")

but clearly a minor cosmetic change regardless
2015-02-14 15:42:35 -05:00
Gered e10a5e08e4 body now optional for response helpers (if just http status is enough) 2015-01-08 19:08:03 -05:00
Gered 6f203c26ea add common http response helper functions 2015-01-08 18:31:14 -05:00
Gered 5780caa698 rename wrap-checks 2015-01-07 22:09:04 -05:00
Gered f4527253b7 allow for either assoc or merge to get body content into :safe-params 2015-01-05 13:23:38 -05:00
Gered 14a462940d add auto-transform-body 2015-01-05 13:13:40 -05:00
Gered bb7438d555 checked-routes -> wrap-checks (mainly just a minor syntax cleanup) 2015-01-05 12:35:38 -05:00
Gered da94d5fd75 with-middleware -> wrap-middleware. uses compojure's wrap-routes now
this fixes problems where middleware could be run even if the wrapped
routes did not match the request (depended on scoping, e.g. nesting
in a context could limit this, but was not perfect).
2015-01-05 12:11:03 -05:00
Gered ad8401f88c support for transforming/validating/marking-safe the request body 2015-01-05 00:28:11 -05:00
Gered d59bc300fa add basic validation helper for checking against a schema definition 2015-01-04 23:40:23 -05:00
Gered 4fb8b7a002 allow alternate param parents to be specified. allow nested params. 2015-01-04 23:31:24 -05:00
Gered a5010e423e comments 2015-01-04 15:14:02 -05:00
Gered bd038047db initial commit 2015-01-04 00:11:24 -05:00