Makes the entire form work but it just looks janky
This commit is contained in:
20
src/clj/auto_ap/ssr/hx.clj
Normal file
20
src/clj/auto_ap/ssr/hx.clj
Normal file
@@ -0,0 +1,20 @@
|
||||
(ns auto-ap.ssr.hx
|
||||
(:require [cheshire.core :as cheshire]
|
||||
[clojure.string :as str]))
|
||||
|
||||
|
||||
(defn vals [m]
|
||||
(cheshire/generate-string m))
|
||||
|
||||
|
||||
(defn json [m]
|
||||
(cheshire/generate-string m))
|
||||
|
||||
(defn trigger-field-change [& {:keys [name
|
||||
from]}]
|
||||
(format "change[target.name==\"%s\"] %s"
|
||||
name
|
||||
(when from (str "from:" from))))
|
||||
|
||||
(defn triggers [& triggers]
|
||||
(str/join ", " triggers))
|
||||
Reference in New Issue
Block a user