split up file-loader into separate loaders
i don't particularly like the idea of automagically figuring out of a template file is in the classpath or another file outside of it
This commit is contained in:
parent
6c14fd9a14
commit
36a8e3f113
|
@ -5,13 +5,9 @@
|
|||
(com.mitchellbosecke.pebble.template PebbleTemplate))
|
||||
(:require [clojure.walk :refer [stringify-keys]]))
|
||||
|
||||
(defonce file-loader
|
||||
(DelegatingLoader.
|
||||
[(ClasspathLoader.)
|
||||
(FileLoader.)]))
|
||||
|
||||
(defonce string-loader
|
||||
(StringLoader.))
|
||||
(defonce classpath-loader (ClasspathLoader.))
|
||||
(defonce file-loader (FileLoader.))
|
||||
(defonce string-loader (StringLoader.))
|
||||
|
||||
(defn- make-pebble-engine []
|
||||
(PebbleEngine. file-loader))
|
||||
|
|
Loading…
Reference in a new issue