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
>>
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
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,
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
>
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'
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
--
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