diff --git a/project-cljs.clj b/project-cljs.clj index 9b01bfa..2237f91 100644 --- a/project-cljs.clj +++ b/project-cljs.clj @@ -1,4 +1,4 @@ -(defproject org.domaindrivenarchitecture/c4k-common-cljs "2.0.2-SNAPSHOT" +(defproject org.domaindrivenarchitecture/c4k-common-cljs "2.0.2" :description "Contains predicates and tools for c4k" :url "https://domaindrivenarchitecture.org" :license {:name "Apache License, Version 2.0" diff --git a/src/main/cljs/dda/c4k_common/yaml.cljs b/src/main/cljs/dda/c4k_common/yaml.cljs index b3f467a..2e313eb 100644 --- a/src/main/cljs/dda/c4k_common/yaml.cljs +++ b/src/main/cljs/dda/c4k_common/yaml.cljs @@ -19,3 +19,8 @@ (keyword (first (st/split resource #"/")))) (defmulti load-resource dispatch-by-resource-name) + +(defmulti load-as-edn dispatch-by-resource-name) + +(defmethod load-as-edn :clj [resource-name] + (from-string (load-resource resource-name)))