I finally started trying some ClojureScript, hoping things would be working and documented, but I'm still having a lot of trouble even getting a simple app together.
cljs-build does a fair job at getting a working setup in a few minutes, but there is still a lot of things that are "just because" or are not at all. For now I'm just guessing when to use slashes, dots or dashes for interop. It seems people insist on using (:require [some.class.path :as p]) and then use some.class.path instead of p. Regardless of the reason for that, I can't seem to import this contenteditable field: http://closure-library.googlecode.com/svn/docs/class_goog_editor_ContentEditableField.html As I understand it, clojurescript namespace get compiled to closure provides calls. The provides call for ContentEditableField is goog.editor.ContentEditableField, yet I fail to require it any way I try. Importing something else, like goog.dom seems to work just fine. In some docs I read that if you use simple optimizations, you need to load goog.base and your code and then require it. I don't see any closure library output that I can use, and it seems to work without doing that. It seems strange to me that you would need different code on the client depending on the optimization level. Just to be sure, I also ran advanced compilation, in which case it complains about missing goog.editor.ContentEditableField at compile time. I hope someone can clear things up. Pepijn -- 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