taoensso.tempura.impl
Private implementation details.
attrs-explode-args-in-strs
cljs
(attrs-explode-args-in-strs v)
compile-dictionary
cljs
(compile-dictionary dict)
escape-html
cljs
(escape-html s)
expand-locale
cljs
(expand-locale locale)
:en-GB-var1 -> [:en-GB-var1 :en-GB :en], etc.
expand-locales
cljs
(expand-locales locales)
load-resource
cljs
(load-resource rname)
node-paths
cljs
(node-paths m)
(node-paths node-pred m)
(node-paths node-pred m basis)
search-resids
cljs
(search-resids dict locale-splits ?scope resids)
loc1 res1 var1 var2 ... base
res2 var1 var2 ... base
...
loc2 res1 var1 var2 ... base
res2 var1 var2 ... base
...
str->?arg-idx
cljs
(str->?arg-idx s)
str->split-args
cljs
(str->split-args s)
Checks string for simple Clojure-style (%d) args and returns a vector of
string parts and int arg indexes for later joining.
str->split-styles
cljs
(str->split-styles s)
str->vargs-fn
cljs
(str->vargs-fn s)
(str->vargs-fn s argval-fn)
Returns a (fn [args-vector]) which replaces simple Clojure-style (%n) args
in string with `(str (?argval-fn <corresponding-vector-arg>))`.
Optimized for fn runtime, not fn creation.
vec->vargs-fn
cljs
(vec->vargs-fn v)
(vec->vargs-fn v argval-fn)
Returns a (fn [args-vector]) which replaces simple Clojure-style (%n) arg
elements with `(?argval-fn <corresponding-vector-arg>)`.
Optimized for fn runtime, not fn creation.
vec->vtag
cljs
(vec->vtag v)
(vec->vtag v default-tag)
["foo"] -> [:span "foo"] as a convenience.
vec-escape-html-in-strs
cljs
(vec-escape-html-in-strs v)
vec-explode-args-in-strs
cljs
(vec-explode-args-in-strs v)
vec-explode-styles-in-strs
cljs
(vec-explode-styles-in-strs v)
(vec-explode-styles-in-strs v str-splitter)