-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example HTML file which uses unoptimized output. Refs #28
- Loading branch information
1 parent
8815fc5
commit 7eee461
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<html> | ||
<head> | ||
<title>Hello ClojureScript</title> | ||
</head> | ||
<body> | ||
<h1>Hello ClojureScript!</h1> | ||
<!-- In unoptimized mode, additional script tags are required --> | ||
<script type="text/javascript" src="../../out/goog/base.js"></script> | ||
<script type="text/javascript" src="hello.js"></script> | ||
<script> | ||
goog.require('hello.core'); | ||
</script> | ||
<script> | ||
alert(greet("ClojureScript")); | ||
alert("The sum of [1,2,3,4,5,6,7,8,9] is: " + hello.core.sum([1,2,3,4,5,6,7,8,9])); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters