Skip to content

Instantly share code, notes, and snippets.

@Jannis
Created February 12, 2016 17:01
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 Jannis/4c9bb3dc461fcff7ff67 to your computer and use it in GitHub Desktop.
Save Jannis/4c9bb3dc461fcff7ff67 to your computer and use it in GitHub Desktop.
;;; view.clj
(ns clients.common.view)
(defn defview*
([name forms] (defview* name forms nil)
[name forms env])))
(defmacro defview
[name & forms]
(defview* name forms &env))
;;;; view.cljs
(ns clients.common.view)
;;;; app.cljs
(ns clients.web.views.app
(:require [clients.common.view :refer-macros [defview]]))
(defview App
[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment