Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update new.renderer for lein 2.1

  • Loading branch information...
commit 78297e7d7404aee94a6b1ffd2ccbc6b0a95189de 1 parent 9f82427
@alexander-yakushev alexander-yakushev authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/leiningen/droid/new.clj
6 src/leiningen/droid/new.clj
@@ -17,10 +17,10 @@
file is simply slurped and the content returned unchanged."
(fn [template & [data]]
- (let [path (string/join "/" [name (sanitize template)])]
+ (let [res (-> (io/file name (sanitize template)) .getPath io/resource)]
(if data
- (render-text (slurp-resource path) data)
- (io/input-stream (io/resource path))))))
+ (render-text (slurp-resource res) data)
+ (io/input-stream res)))))
(defn package-to-path [package-name]
(string/replace package-name #"\." "/"))
Please sign in to comment.
Something went wrong with that request. Please try again.