Skip to content
Browse files

Don't create single-segment namespaces in the "lein new" skeleton.

  • Loading branch information...
1 parent 92e9bbf commit e4e4ff5db791f94e6ff57c00e6c3520dc9cac9da @technomancy committed Feb 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/leiningen/new.clj
View
2 src/leiningen/new.clj
@@ -18,7 +18,7 @@ Neither group-id nor artifact-id may contain slashes."
" :description \"FIXME: write\"\n"
" :dependencies [[org.clojure/clojure \"1.1.0\"]\n"
" [org.clojure/clojure-contrib \"1.1.0\"]])"))
- (let [project-ns (.replace (str project-name) "/" ".")
+ (let [project-ns (str (.replace (str project-name) "/" ".") ".core")
project-clj (str (apply str (replace {\- \_, \. \/} project-ns))
".clj")
test-clj (.replace project-clj ".clj" "_test.clj")]

0 comments on commit e4e4ff5

Please sign in to comment.
Something went wrong with that request. Please try again.