Howto Use isComponent with Adi

2014-08-03 Thread Timothy Washington
Hey, I'm playing around with adi, and it looks pretty cool. But I can't seem to get isComponent to work in my adi schema. It's failing when I try to use a boolean, which was my first guess as to it's usage (see wiki , source

Re: Don't understand inline vs extend-type implementation of defprotocol across namespaces

2014-08-03 Thread Flea Wong
Thank-you Sean for your answers, I got the example to work and your explanations certainly helped clarify the problem. And it definitely improved my understanding of Clojure. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

Re: docs with sphinx rst

2014-08-03 Thread Michael Klishin
 On 4 August 2014 at 03:12:07, Brian Craft (craft.br...@gmail.com) wrote: > > Any sphinx users here? Maybe adapting the common lisp domain, > or something? metrics-clojure uses Sphinx: https://github.com/sjl/metrics-clojure -- @michaelklishin, github.com/michaelklishin -- You received this m

docs with sphinx rst

2014-08-03 Thread Brian Craft
I need to integrate with a project which uses sphinx to generate documentation. Are there any solutions for documenting clojure apps with sphinx? I found lein-sphinx, which allows running a sphinx build from lein, but doesn't include a clojure domain for sphinx. Any sphinx users here? Maybe ada

Re: CLJS Function clobbering js function of same name

2014-08-03 Thread David Nolen
Ah hm, yeah I'm surprised this isn't caught by the existing shadowing and :js-globals logic. Sure open a ticket, patch welcome of course. David On Sun, Aug 3, 2014 at 6:23 PM, Herwig Hochleitner wrote: > To clarify on David's comment, js/console puts a literal 'console' > identifier into the gen

Re: CLJS Function clobbering js function of same name

2014-08-03 Thread Herwig Hochleitner
To clarify on David's comment, js/console puts a literal 'console' identifier into the generated js. In your example, js/console is shadowed, because (defn console[] js/console) is emitted as ns.console = (function console(){return console;}); The discussion to be had here is whether the (interna

Re: multiple file upload

2014-08-03 Thread Herwig Hochleitner
I'm not sure how that would be handled with noir. With plain ring, you would use the multipart-params middleware [1] to get a :multipart-params submap in the request, in which all uploaded files are passed. At this point you can process them with (doseq [[param-name {:keys [filename content-type b

multiple file upload

2014-08-03 Thread Nick Macia
Hello all, sorry that this is a basic question. I've recently migrated over to clojure from php and some features of the language still remain obscure to me. I have been following "Web Development with Clojure" (solid intro) and have run into a wall with file uploads. The book provides the follo