Skip to content

Instantly share code, notes, and snippets.

@sch
Last active October 25, 2015 16:23
Show Gist options
  • Save sch/07d4e1478974a4df673c to your computer and use it in GitHub Desktop.
Save sch/07d4e1478974a4df673c to your computer and use it in GitHub Desktop.
Clojure namespace wishlist
(ns om-tutorial.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[cljs.pprint]))
;; simple maps do it better:
(ns om-tutorial.core
(:require [goog.dom {:alias gdom}]
[om.next {:alias om :refer-macros [defui]}]
[om.dom {:alias dom}]
[cljs.pprint]))
;; or maybe even:
(ns om-tutorial.core
{:dependencies {{goog.dom {:alias gdom}}
{om.next {:alias om :refer-macros [defui]}}
{om.dom {:alias dom}}
cljs.pprint nil}})
;; either way, `ns` feels like this weird imperative spell you conjure in order
;; to setup the world for your program. should be much more declarative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment