This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-05
Channels
- # bangalore-clj (4)
- # boot (196)
- # chestnut (1)
- # cider (4)
- # clara (3)
- # cljs-dev (23)
- # cljsjs (28)
- # cljsrn (1)
- # clojure (79)
- # clojure-art (1)
- # clojure-berlin (1)
- # clojure-hk (17)
- # clojure-italy (5)
- # clojure-korea (1)
- # clojure-russia (21)
- # clojure-spec (5)
- # clojure-uk (26)
- # clojurescript (125)
- # core-async (1)
- # cursive (23)
- # datomic (7)
- # emacs (17)
- # hoplon (51)
- # jobs (2)
- # leiningen (2)
- # om (11)
- # om-next (26)
- # onyx (39)
- # pedestal (9)
- # proton (4)
- # re-frame (43)
- # reagent (1)
- # ring (2)
- # slack-help (12)
- # sydney (4)
- # test-check (9)
- # yada (40)
Instrumentation validates that the :args spec is being invoked on instrumented functions and thus provides validation for external uses of a function.
...
Note that the :ret and :fn specs are not checked with instrumentation as validating the implementation should occur at testing time.
(stest/check `test-func)
:clojure.spec.test.check/ret {:result #error{:cause "Specification-based check failed",
:data {:clojure.spec/problems [{:path [:ret],
:pred integer?,
:val "",
:via [],
:in []}],
:clojure.spec.test/args (""),
:clojure.spec.test/val "",
:clojure.spec/failure :check-failed},
...
@linuccio если для вэба - не проще это через DOM делать? Я давно еще заметил что в JS нет либ для XML - они там не нужны. Там есть dom, который прекрасно сам умеет себя модифицировать. jquery если какие запросы и все.
нашел вот это http://funcool.github.io/tubax/
Дело в том, что этот SVG — фоновая картинка, т.е. прописывается в element.sytle.backgroundImage
А библиотека эта вроде только парсит в Clojure структуры данных, но не собирает обратно
jQuery, которая отработала бы по строке, или структуре спаршенной из XML предварительно и собрала бы в xml обратно
так сделай jquery(“строка svg”) jquery создаст DOM который можешь изменить как хочешь потом можешь опять в строку превратить
а для jquery https://github.com/ibdknox/jayq