Skip to content

Instantly share code, notes, and snippets.

@nicolasartman
Created August 9, 2015 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasartman/4166ddc4b8b7f3f07496 to your computer and use it in GitHub Desktop.
Save nicolasartman/4166ddc4b8b7f3f07496 to your computer and use it in GitHub Desktop.
(ns interviewing-io.core
(:require
[om.core :as om]
[om-tools.core :refer-macros [defcomponent, defcomponentk]]
[om-tools.mixin :refer-macros [defmixin]]
[sablono.core :as html :refer-macros [html]]))
(enable-console-print!)
; (js/alert "test")
(defn testfun [] 8)
(.log js/console (testfun))
(defonce app-state (atom {:list ["This" "Is" "Sparta..." "Antelope?"]}))
(om/root
(fn [data owner]
(om/component
(html
(map #([:h1 %]) (:list data)))))
app-state
{:target (. js/document (getElementById "om-test"))})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment