Re: juxt/bidi ring question

2015-05-04 Thread clifford
Thanks @fluiddynamics your right on the money. On Monday, 4 May 2015 17:34:26 UTC+2, clifford wrote: > > Hi > > I am using juxt/bidi for route matching. > > with the following routes: > >> (def routes ["/" {"index.html" :index >>

juxt/bidi ring question

2015-05-04 Thread clifford
It correctly matches at the REPL. > (match-route routes "/articles/4") > => {:handler :article, :route-params {:id "4"}} However in the browser, when I hit the url, localhost:3000/articles/4 It attempts to download a file with name "4", can anybody let me kn

Re: equivalent of Compojure resources in juxt/bidi

2015-01-12 Thread clifford
It works, thanks Malcom. It is surprisingly easy once you understand how to wire it together. Thanks for your help and a great library. Clifford On Sunday, 11 January 2015 21:27:06 UTC+2, cliff wrote: > > Hi > > I am trying to mimic the following Compojure behaviour,

Re: destructuring vectors with :or

2013-04-13 Thread henry clifford
Fantastic, thank you! On Friday, April 12, 2013 11:13:23 PM UTC+1, John Hume wrote: > > You can use a map destructuring form on a vector like so: > > (let [{x 0 y 1 :or {x 0 y 0}} [7]] [x y]) > > returns [7 0] > > On Fri, Apr 12, 2013 at 5:00 PM, henry clifford >

destructuring vectors with :or

2013-04-12 Thread henry clifford
I'm trying to use the :or destructuring syntax as seen here applied to a map (def point {:y 7}) (let [{:keys [x y] :or {x 0 y 0}} point] (println "x:" x "y:" y)) x: 0 y: 7 but I can't get this to work with vectors: (def point [7]) (let [[x y :or [0 0]] point] (println "x:" x "y:" y)) what'

google-closure-library 2029

2012-09-28 Thread henry clifford
Hey everyone, I'm trying to find a .jar of the the latest google-closure-library I'm currently using org.clojure for 0.0-1376 http://mvnrepository.com/artifact/org.clojure/google-closure-library But havn't been able to find a jar for 0.0-2029 Any help would be greatly appreciated! Thanks --

Re: Abridged summary of clojure@googlegroups.com - 28 Messages in 7 Topics

2012-06-10 Thread clifford goldberg
On 02 Jun 2012 1:57 AM, wrote: > Today's Topic Summary > > Group: http://groups.google.com/group/clojure/topics > >- When arithmetic on a computer bite > back<#137aa7bd6d6d4f87_group_thread_0>[3 Updates] >- using -> on a nested hash-map with string > keywords.<#137aa7bd6d6d4f87_group