From 404110092f21af3ec500b7979791baf19d9a6c74 Mon Sep 17 00:00:00 2001 From: jem Date: Mon, 16 Dec 2019 15:34:09 +0100 Subject: [PATCH] add copy for user resources --- src/cryogen_core/classpath_able_io.clj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj index c9b3131..1b316a9 100644 --- a/src/cryogen_core/classpath_able_io.clj +++ b/src/cryogen_core/classpath_able_io.clj @@ -118,6 +118,12 @@ (when (.isFile source-file) (io/copy source-file target-file))))))) +(defn copy-resources-from-user! + [fs-prefix resources target-path ignore-patterns] + (let [resource-path "templates"] + (copy-resources! fs-prefix resource-path resources + target-path ignore-patterns))) + (defn copy-resources-from-theme! [fs-prefix theme target-path ignore-patterns] (let [theme-path (str "templates/themes/" theme)]