Skip to content

Commit

Permalink
Merge pull request duct-framework#88 from magnetcoop/master
Browse files Browse the repository at this point in the history
Fix :dirs being unintentionally ignored
  • Loading branch information
weavejester authored Feb 13, 2019
2 parents ca7f9bf + 6a95026 commit ae5bc86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lein-template/src/leiningen/new/duct.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@
(sort-by key)
(map (fn [[path temp]] [path (render-resource data temp)]))))

(defn generate-project [{:keys [vars templates] :as profile}]
(defn generate-project [{:keys [vars templates dirs] :as profile}]
(let [data (merge vars (select-keys profile [:deps :dev-deps]))
files (render-templates data templates)]
(apply templates/->files data files)))
(apply templates/->files data (concat files dirs))))

(defn duct
"Create a new Duct web application.
Expand Down

0 comments on commit ae5bc86

Please sign in to comment.