        version: "0.0.1",
        deps_path: "../../deps",
        lockfile: "../../mix.lock",
-       elixir: "~> <%= System.version %>",
+       elixir: "~> <%= @version %>",
        deps: deps]
     end
 

  end

  defp do_generate(app, mod, path, opts) do
    assigns = [app: app, mod: mod, otp_app: otp_app(mod, !!opts[:sup])]

    create_file "README.md",  readme_template(assigns)
    create_file ".gitignore", gitignore_text

    def project do
      [app: :<%= @app %>,
       version: "0.0.1",
       elixir: "~> <%= @version %>",
       deps: deps]
    end

