Permalink
Browse files

Add an example HTML file which uses unoptimized output. Refs #28

  • Loading branch information...
1 parent 8815fc5 commit 7eee4612a9907f7a5efbb2c86418927a7be18d97 @brentonashworth brentonashworth committed Jul 8, 2011
Showing with 19 additions and 1 deletion.
  1. +18 −0 samples/hello/hello-dev.html
  2. +1 −1 samples/hello/hello.html
@@ -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>
View
@@ -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]));

0 comments on commit 7eee461

Please sign in to comment.