Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
public
src
.gitignore
README.md
project.clj

README.md

cljsbin

Code for the Poor Man's Cljsfiddle blog post.

Usage

Run lein ring server and compile/run cljs code in browser. Try following:

(ns hello
  (:require [clojure.browser.dom :as dom]))

(defn say-hello []
  (->> "Hello from ClojureScript!"
       (dom/element)
       (dom/append (.-body js/document))))

(.addEventListener js/window "load" say-hello)