[英]How to add the clojure.string library to a front-end Hoplon project using the Boot-clj build tool
我希望这些问题能对某人有所帮助。 我是Hoplon和Boot的新手。 我正在尝试在Hoplon项目中使用“ clojure.string”库,但似乎无法获取。 我在index.cljs.hl文件中尝试过:
(:require [clojure.string :as str]))
然后它不会加载。 接下来,我尝试将库包含在build.boot工具中,但似乎都不起作用:
[org.clojure/clojure.string "1.8.0"]
[org.clojure/clojure-string "1.8.0"]
这些似乎都不起作用,因此我正在研究如何使用字符串库。
干杯,马特
经过大量的搜索,我终于找到了解决方法。 您需要做的就是在“ index.cljs.hl”文件中,在顶部添加以下内容。
(page "index.html"
(:require [clojure.string :as str]))
然后您可以以(str / split等方式访问字符串库。
干杯,马特
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.