RE: new with clojure, need help!

2012-04-26 Thread Guofeng Zhang
See if the following is helpful: http://dev.clojure.org/display/doc/Getting+Started+with+Eclipse+and+Counterclockwise From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of omer Sent: Wednesday, April 25, 2012 10:37 PM To: clojure@googlegroups.com Subject: new with clojur

RE: lein-cljsbuild on Windows?

2012-04-26 Thread Guofeng Zhang
-cljsbuild globally with lein plugin install. On Apr 26, 2:36 am, Guofeng Zhang wrote: > Trying ctest. > > if I clone the project then run " lein cljsbuild auto" in it, I got: > Copying 3 files to D:\projects\app\clojure\contrib\ctest\.lein-plugins > Compiling ClojureScript. &

RE: Having trouble running clojurescript repl

2012-04-26 Thread Guofeng Zhang
Trying ctest. if I clone the project then run " lein cljsbuild auto" in it, I got: Copying 3 files to D:\projects\app\clojure\contrib\ctest\.lein-plugins Compiling ClojureScript. Error: Could not find or load main class clojure.main If I run "lein deps", then run "lein cljsbuild auto", I got: Tha

clojurescript: generating the JavaScript on the fly?

2011-10-27 Thread Guofeng Zhang
Hi, Suppose there is a ajax request comes to the server. The server code process it and then send some JavaScript codes as the response. Could clojurescript be using in the case? For example, given a string representing the Clojurescript code, then build it into Javascript codes in the memeory

when quotes and when syntax-quotes?

2011-10-17 Thread Guofeng Zhang
Hi, I am reading Joy of Clojure, there is the following sample in 8.1.1: (defn contextual-eval [ctx expr] (eval `(let [~@(mapcat (fn [[k v]] [k `'~v]) ctx)] ~expr))) And the sample output: (contextual-eval {'a 1, 'b 2} '(+ a b)) ;=> 3 (contextual-eval {'a 1, 'b 2} '(let [b 1000] (+ a