diff --git a/src/clj_jtwig/core.clj b/src/clj_jtwig/core.clj index 8b68510..796f279 100644 --- a/src/clj_jtwig/core.clj +++ b/src/clj_jtwig/core.clj @@ -10,7 +10,8 @@ (java.io File FileNotFoundException ByteArrayOutputStream))) ; global options -(defonce options (atom {:cache-compiled-templates true})) +(defonce options (atom {:cache-compiled-templates true + :skip-file-modification-check false})) (declare flush-template-cache!) @@ -72,7 +73,8 @@ new-compiled-template)) cached (get @compiled-templates filepath)] (if (and cached - (not (newer? file (:last-modified cached)))) + (or (:skip-file-modification-check @options) + (not (newer? file (:last-modified cached))))) (:template cached) (cache-and-return!))))