From cb21bdab323e2f6fca362684913c66d58fbae5d4 Mon Sep 17 00:00:00 2001 From: Jonathan Abbey Date: Mon, 23 Jun 2014 06:24:17 -0500 Subject: [PATCH] Allow nil *template-path* This is necessary if the top-level web resources directory contains files that need to have template processing on them. --- src/com/ebaxt/enlive_partials.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/ebaxt/enlive_partials.clj b/src/com/ebaxt/enlive_partials.clj index c753ca6..b03514d 100644 --- a/src/com/ebaxt/enlive_partials.clj +++ b/src/com/ebaxt/enlive_partials.clj @@ -20,7 +20,7 @@ (defn- find-html-resource [file] (let [file (.replaceAll file "^/" "") - path (str *template-path* "/" file) + path (if *template-path* (str *template-path* "/" file) file) resource (io/resource path)] (if resource (html-resource resource)