2
我必须包括在clojurescript命名空间很多声明:如何在Clojurescript中减少我的ns声明的大小?
(:use-macros
[webapp.framework.client.coreclient
:only [ns-coils sql log neo4j neo4j-1 sql-1 log
watch-data -->ui <--data <--ui
watch-ui remote defn-ui-component
container map-many inline text
div img pre component h2 input
write-ui read-ui container
inline text admin ==data ==ui -->ui watch-ui <--ui
<--data -->data remote inputcomponent <--
h1 h2 h3 h4 h5 h6 span data-view-v2
watch-data map-many inline text
container <--pos <--id session-user-id select select-debug
def-coils-app
]])
有什么办法来减少这种喜欢的东西:
(:use-macros
[webapp.framework.client.coreclient])
?
我这样做的原因是,我不必每次使用“client/div”类型前缀时使用元素 – Zubair
这被认为是不好的做法,因此它不是介绍给Clojurescript,它不会。 https://groups.google.com/forum/#!searchin/clojurescript/refer$20all/clojurescript/SzYK08Oduxo/p0bWhM5lftUJ –