Hello,
  I'm stuck on this particular problem that I'm having problem figuring out 
what to do:

Say I have a leiningen project that has a simple ClojureScript 
src/cljs/hello_world/hello.cljs file that has the following:

(ns hello-world.hello
  (:require-macros [hello-world.macro :as macro]))

(defn ^:export main []
  (macro/my-when true
    (.write js/document "Hello, world!")))

and I have the macro file macro.clj

(ns hello-world.macro)

(defmacro my-when [condition & body]
  `(if ~condition (do ~@body)))

I can't figure out where do I put macro.clj for cljsc or cljs.closure/build 
to find the macro. I tried placing the macro.clj in the same directory as 
hello.cljs or place it under src/clj/hello_world or place it directory 
under src/hello_world. It doesn't matter where I put it, it will not 
compile as I get the following error:

FileNotFoundException Could not locate hello_world/macro__init.class or 
hello_world/macro.clj on classpath:   clojure.lang.RT.load (RT.java:443)

Thank you


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to