2014-11-24 3 views
-5

enter image description hereclojurescript를 javascript로 컴파일하는 방법은 무엇입니까?

나는 clojurescript의 저자에게 큰 질문이 있습니다. 그리고 모든 clojurescript 커뮤니티.

ClojureScript 안내서가 불완전하고 깨졌습니다. 이 문제는 도움이되지 않습니다. (사진 참조)

자바 스크립트에 clojurescript를 컴파일하는 방법은 무엇입니까?

+1

이 명시된 바와 같이, 당신은이 질문을 – edbond

+3

사용하는 튜토리얼에 대한 링크를 추가는 매우 좋은하지 않습니다 . 어떤 튜토리얼? 이 스택 추적에 도달하기 위해 수행 한 단계는 무엇입니까? 그런데 나는 좌절감에 완전히 공감할 수있다. 나는 결국 나를 위해 잘 작동하는 클로저 스크립트 루틴을 발견했지만, 많은 시행 착오를 겪었습니다. 거의 찾을 수 있었던 거의 모든 클로이 스크립트 사본은 진흙처럼 도움이됩니다. – galdre

+0

자습서는 https://github.com/clojure/clojurescript/wiki/Quick-Start#using-clojurescript-on-a-web-page – edbond

답변

1

사용 lein-mies 템플릿

→ lein new mies hello-world 
Retrieving mies/lein-template/0.4.1/lein-template-0.4.1.pom from clojars 
Retrieving mies/lein-template/0.4.1/lein-template-0.4.1.jar from clojars 
→ cd hello-world 
→ lein cljsbuild auto 
Compiling ClojureScript. 
Compiling "hello_world.js" from ["src"]... 
Successfully compiled "hello_world.js" in 8.025 seconds. 

이제 index.html 열고 브라우저 콘솔에서 볼 :

Hello world! 
관련 문제