Skip to content

Commit 867355e

Browse files
committed
section7 video1
1 parent c5e70f7 commit 867355e

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

cljs/project1/hello.cljs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(ns project1.hello)
2+
3+
(js/alert "Hello ClojureScript!")
4+

project.clj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
:url "http://example.com/FIXME"
44
:license {:name "Eclipse Public License"
55
:url "http://www.eclipse.org/legal/epl-v10.html"}
6-
:plugins [[lein-ring "0.8.7"]]
6+
:plugins [[lein-ring "0.8.7"]
7+
[lein-cljsbuild "1.0.3"]]
78
:ring {:handler project1.core/full-handler
89
:init project1.core/on-init
910
:port 4001
@@ -14,4 +15,6 @@
1415
[korma "0.3.0-RC6"]
1516
[com.novemberain/monger "1.7.0"]
1617
[cheshire "5.1.1"]
17-
[ring "1.2.0"]])
18+
[ring "1.2.0"]]
19+
:cljsbuild {:builds [{:source-paths ["cljs"]
20+
:compiler {:output-to "resources/public/app.js"}}]})

resources/public/js.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<head>
3+
</head>
4+
<body>
5+
<script src="/app.js"></script>
6+
</body>
7+
</html>

0 commit comments

Comments
 (0)