프로젝트 생성후 Repl에서 실행하려면 use를 쓴다다
> (use 'board.models.post)
repl에서 바로 쓰게 할려면
project.clj에 main을 설정할 수도 있다.
(defproject board "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :main board.models.post ;이부분! :dependencies [[org.clojure/clojure "1.6.0"]])
더 정확히 하면 main은 core로 두고, 네임 스페이스 시작만 바꿀 수도 있다.
(defproject board "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :main board.core; 이건 core로 :repl-options {:init-ns board.models.post} ; 요부분은 레플에서 시작하고 싶은 네임 스페이스로! :dependencies [[org.clojure/clojure "1.6.0"]])
There was an error while loading. Please reload this page.