Created
August 24, 2012 23:08
-
-
Save bouzuya/3456936 to your computer and use it in GitHub Desktop.
:template-dirで返るパスが*base-dir*からの相対パスなので、compileが通らない。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn get-template-files | |
| "Get all template files. Find specified directory with `:dir` option." | |
| [& {:keys [dir] :or {dir (str *base-dir* (:template-dir *config*))}}] ;; :template-dirで返るパスが*base-dir*からの相対パスなので、compileが通らない。 | |
| (let [exts (get-watch-file-extensions)] | |
| (filter | |
| (fn [file] | |
| (some #(has-extension? % file) exts)) | |
| (find-files dir)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment