Re: JSON authentication with cemerick/friend?

2014-05-06 Thread Erik Bakstad
-adapter 0.0.3] Also didn't work... for now I commented this line out, since it's not necessary to get my curl test working. But it would be nice if you provide the dependencies. Am Donnerstag, 24. April 2014 08:51:29 UTC+2 schrieb Erik Bakstad: -- You received this message because you

Re: JSON authentication with cemerick/friend?

2014-05-06 Thread Erik Bakstad
[ring-netty-adapter 0.0.3] Also didn't work... for now I commented this line out, since it's not necessary to get my curl test working. But it would be nice if you provide the dependencies. Am Donnerstag, 24. April 2014 08:51:29 UTC+2 schrieb Erik Bakstad: -- You received this message

Re: JSON authentication with cemerick/friend?

2014-05-06 Thread Erik Bakstad
request))] Am Dienstag, 6. Mai 2014 08:03:47 UTC+2 schrieb Erik Bakstad: We're using a custom jsonparam-extractor middleware that basically does this: (update-in req [:params] assoc :json-params (read-json (slurp (:body req)) true)) I should probably have clarified this, sorry. Also

Re: JSON authentication with cemerick/friend?

2014-04-24 Thread Erik Bakstad
Here is an example from our ajax-login form. After reading Sam's excellent writeup it should be understandable. https://gist.github.com/ebaxt/11244031 kl. 00:28:45 UTC+2 torsdag 24. april 2014 skrev Ivan Schuetz følgende: Hi, I'm trying to get a simple use case running - send a login

Re: Advice for building backend REST services from scratch using clojure

2014-04-11 Thread Erik Bakstad
You should take a look at Liberatorhttp://clojure-liberator.github.io/liberator/ for the REST services. We're using it at Ardoq http://ardoq.com to build our REST-APIs and we are very happy with it. kl. 16:13:19 UTC+2 torsdag 10. april 2014 skrev Kashyap CK følgende: Hi, I have the

Re: Offline Clojure docs

2013-07-01 Thread Erik Bakstad
If you are a Mac user I highly recommend Dash http://kapeli.com/dash it has all kinds of documentation available for download, and the search is very nice as well. -Erik kl. 07:31:40 UTC+2 mandag 1. juli 2013 skrev David Pollak følgende: Thanks everyone for the super helpful suggestions!

[ANN] enlive-partials 0.2.0

2013-05-20 Thread Erik Bakstad
enlive-partials (http://github.com/ebaxt/enlive-partials) adds support for wrapping and including enlive templates. It is convenient when you want to give designers a sandbox to work with html templates without having to learn enlive/Clojure. New in version 0.2.0 is support for replace-vars:

[ANN] ring-rewrite 0.1.0 ;ring-rewrite let's you define rewrite/redirect rules

2013-04-06 Thread Erik Bakstad
Ring middleware for defining and applying rewrite/redirect rules. In many cases you can get away with ring-rewrite instead of writing Apache mod_rewrite rules. Based on rack-rewrite, but with a Clojure flavor. https://github.com/ebaxt/ring-rewrite (def redirect-handler (fn [req]

Re: Callbacks as Sequences

2013-02-07 Thread Erik Bakstad
Not sure it applies, but I found this very interesting: http://oobaloo.co.uk/clojure-from-callbacks-to-sequences Erik kl. 19:45:36 UTC+1 onsdag 6. februar 2013 skrev da...@dsargeant.com følgende: I'm not to clojure/clojurescript and was wondering if anyone has taken a crack at writing a

Re: How to integrate front-end designers into Clojure/Ring/Jetty workflow?

2013-01-11 Thread Erik Bakstad
Another tip, I have extracted the support for nesting html templates using enlive from http://clojurescriptone.com. What that gives you is the support for sandboxing all the templates under a given url i.e templates/* so that the designers can work with HTML-only but in a DRY fashion. What I

Mocking framework

2011-06-28 Thread Erik Bakstad
Hi, I'm currently working on my first real Clojure project, and I find myself wanting a mocking tool. So I was wondering what you are using? I tried googling, but I can't seem to find the Mockito of the clojure world. Searching for a mocking tool in Clojure it looks like there is a lot of small