Skip to content

Commit

Permalink
Add an example HTML file which uses unoptimized output. Refs #28
Browse files Browse the repository at this point in the history
  • Loading branch information
brentonashworth committed Jul 8, 2011
1 parent 8815fc5 commit 7eee461
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions samples/hello/hello-dev.html
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>
2 changes: 1 addition & 1 deletion samples/hello/hello.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<html>
<head>
<title>Hello ClojureScript</title>
<script type="text/javascript" src="hello.js"></script>
</head>
<body>
<h1>Hello ClojureScript!</h1>
<script type="text/javascript" src="hello.js"></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]));
Expand Down

0 comments on commit 7eee461

Please sign in to comment.