Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit fb9c1af24b193bd95e4117e539103f1fabca2109 1 parent 827d874
@ptaoussanis authored
View
10 src/taoensso/tower.clj
@@ -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))
View
4 src/taoensso/tower/cljs.cljs → src/taoensso/tower.cljs
@@ -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.
View
15 src/taoensso/tower/cljs/macros.clj
@@ -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))
View
15 src/taoensso/tower/cljs_macros.clj
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.