From edc93f6857757bebbb03c070e7ba719b2ca5a538 Mon Sep 17 00:00:00 2001 From: jem Date: Mon, 16 Dec 2019 15:00:25 +0100 Subject: [PATCH] html/404 should reside in root --- src/cryogen_core/classpath_able_io.clj | 4 +++- test/cryogen_core/classpath_able_io_test.clj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj index 6964226..c057c1c 100644 --- a/src/cryogen_core/classpath_able_io.clj +++ b/src/cryogen_core/classpath_able_io.clj @@ -119,5 +119,7 @@ (defn copy-resources-from-theme! [fs-prefix theme target-path ignore-patterns] (let [theme-path (str "templates/themes/" theme)] - (copy-resources! fs-prefix theme-path ["css" "js" "html"] + (copy-resources! fs-prefix theme-path ["css" "js"] + target-path ignore-patterns) + (copy-resources! fs-prefix (str theme-path "/html") ["404.html"] target-path ignore-patterns))) diff --git a/test/cryogen_core/classpath_able_io_test.clj b/test/cryogen_core/classpath_able_io_test.clj index 4b3f535..e3794db 100644 --- a/test/cryogen_core/classpath_able_io_test.clj +++ b/test/cryogen_core/classpath_able_io_test.clj @@ -106,5 +106,5 @@ (verify-file-exists (str target "/css/dummy.css")) (verify-file-exists - (str target "/html/404.html")) + (str target "/404.html")) ))))