Makes the entire form work but it just looks janky

This commit is contained in:
2023-10-19 22:11:19 -07:00
parent 6059e8a4ca
commit 6863684d9e
21 changed files with 1334 additions and 181 deletions

View 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))