roam test with cljs

This commit is contained in:
Adam Schmideg
2021-01-19 23:04:21 +01:00
committed by Tienson Qin
parent 836b1dad7e
commit d1e595ff76
5 changed files with 43 additions and 7 deletions

View File

@@ -1,17 +0,0 @@
(ns frontend.external
(:require [frontend.external.roam :refer [->Roam]]
[frontend.external.protocol :as protocol]))
(defonce roam-record (->Roam))
(defn get-record
[type]
(case type
:roam
roam-record
nil))
(defn to-markdown-files
[type content config]
(when-let [record (get-record (keyword type))]
(protocol/toMarkdownFiles record content config)))