Skip to content

Instantly share code, notes, and snippets.

@dublindan
Created December 4, 2009 00:24
Show Gist options
  • Save dublindan/248717 to your computer and use it in GitHub Desktop.
Save dublindan/248717 to your computer and use it in GitHub Desktop.
(defmacro program [& components]
`(run-components ~@components))
(defmacro component [name & handlers]
`(make-component ~name (conj {} ~@handlers)))
(defmacro on [handler args & body]
{handler `(fn ~args ~@body)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment