          opts (if (= (:platform opts) :jetty)
                 (merge opts {:ring true, :ringx true})
                 opts)
-log (println (str "OPTS: " opts))
          opts (let [ns (get-in opts [:ns :sym])]
                 (into opts {:ns {:sym (symbol (str (when ns (str ns ".")) project))
                                    :prefix (get-in opts [:ns :prefix])

                  (println))
                (System/exit -1))
              )))]
    (pp/pprint (str "opts: " opts))
;;    (pp/pprint (str "merged opts: " (merge opts {})))
    (merge opts {})))


        cwd (.getPath
                (io/file
                 here "src/leiningen/new/migae"))]
    ;; (pp/pprint "FINAL SPEC:")
    ;; (pp/pprint spec)
    (println "Generating migae project:" (spec :project))
                          ;; to file  		from template
    (let [base (base-templates render spec)
