Running Hoplon on Klipse

This page is live and interactive. It is powered by klipse.

Setup

First let's load hoplon and it's dependencies from the github repository (It might take a couple of seconds...):

(ns my.hoplon (:require [hoplon.core :as h :include-macros true] [javelin.core :as j :refer [cell] :refer-macros [cell= defc defc=]]))
(def my-cell (cell 1)) (defn home [] (h/div :id "app" (h/h1 "Welcome to Klipse Hoplon") (h/h2 :text my-cell :click #(swap! my-cell inc)))) (js/jQuery #(.replaceWith (js/jQuery "#app") (home)))
Not loaded