Chlorine (formerly Clojurejs) is a naive implementation of a Clojure subset language to Javascript translator. Chlorine is an attempt to implement the predictable semantics in the generated Javascript. Some of its features are:
- Consistent scoping in
letandloop/recurforms - Macros with
defmacro - Implicit
returnfrom all forms loop/recurtranslates to Javascriptforloopscasetranslates to Javascriptswitch/case- Translates Clojure vectors, strings, keywords, symbols and maps to Javascript equivalents
- File-based dependencies through
load-fileandload-file-macros - Clojure destructuring forms in functions and
let
Chlorine is available under the Eclipse Public License - v 1.0.
For more information see the chlorine wiki.
