Created
May 6, 2012 00:45
-
-
Save michaelsbradleyjr/2606633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns hello | |
(:require [cljs.nodejs :as nodejs] | |
[foo :as foo])) | |
;;(def foo (.-foo (nodejs/require "./foo"))) | |
(defn ^:export greet [n] | |
;;(str "Hello, " (.title foo n))) | |
(str "Hello, " (foo/title n))) | |
;; ------- foo.cljs ------- | |
;; foo.cljs is in the same directory as hello.cljs | |
(ns foo) | |
(defn ^:export title [n] | |
(str "Mr. " n)) |
simply needed to push process.cwd()
onto the classpath from the nodejs side of things...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting the following error when I invoke
greet
as defined inhello.cljs
(which has been compiled with simple optimizations):