Permalink
Browse files

NB new ns layout again (still trying to find the right tradeoffs)

  • Loading branch information...
ptaoussanis committed Feb 28, 2014
1 parent 827d874 commit fb9c1af24b193bd95e4117e539103f1fabca2109
View
@@ -586,13 +586,3 @@
;; BREAKS v1 due to unavoidable name clash
(def oldt #(apply t (or *locale* :jvm-default) (assoc @config :fmt-fn fmt-msg) %&))
-
-
-;;;; TODO
-;; (defmacro with-locale [loc & body]
-;; `(binding [cljs.taoensso.tower/*locale* (cljs.taoensso.tower/locale ~loc)]
-;; ~@body))
-
-;; (defmacro with-tscope [translation-scope & body]
-;; `(binding [cljs.taoensso.tower/*tscope* ~translation-scope]
-;; ~@body))
@@ -1,9 +1,9 @@
-(ns taoensso.tower.cljs
+(ns taoensso.tower
"Experimental ClojureScript support for Tower."
{:author "Peter Taoussanis"}
(:require [clojure.string :as str]
[taoensso.encore :as encore])
- (:require-macros [taoensso.tower :as tower-macros]))
+ (:require-macros [taoensso.tower.cljs-macros :as tower-macros]))
;;;; TODO
;; * NB: Locale-aware format fn for fmt-str.
@@ -1,15 +0,0 @@
- (ns taoensso.tower.cljs.macros
- {:author "Peter Taoussanis"}
- (:require [taoensso.tower :as tower]))
-
-(defmacro dict-compile
- "Tower's standard dictionary compiler, as a compile-time macro."
- [dict] (tower/dict-compile dict))
-
-(defmacro with-locale [loc & body]
- `(binding [taoensso.tower.cljs/*locale* (taoensso.tower.cljs/locale ~loc)]
- ~@body))
-
-(defmacro with-tscope [translation-scope & body]
- `(binding [taoensso.tower.cljs/*tscope* ~translation-scope]
- ~@body))
@@ -0,0 +1,15 @@
+(ns taoensso.tower.cljs-macros
+ {:author "Peter Taoussanis"}
+ (:require [taoensso.tower :as tower]))
+
+(defmacro dict-compile
+ "Tower's standard dictionary compiler, as a compile-time macro."
+ [dict] (tower/dict-compile dict))
+
+(defmacro with-locale [loc & body]
+ `(binding [taoensso.tower/*locale* (taoensso.tower/locale ~loc)]
+ ~@body))
+
+(defmacro with-tscope [translation-scope & body]
+ `(binding [taoensso.tower/*tscope* ~translation-scope]
+ ~@body))

0 comments on commit fb9c1af

Please sign in to comment.