Created
February 25, 2022 14:17
-
-
Save pjstadig/9fd8760adeab745d7e2da0a9f5208940 to your computer and use it in GitHub Desktop.
Protocol + client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns stadig.widget | |
(:require | |
[stadig.storage :as storage])) | |
(defn store-widget | |
[storage-conn widget-name] | |
(storage/put storage-conn | |
"widgets" | |
widget-name | |
(pr-str {:type :widget :name widget-name}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment