Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 7eee4612a9907f7a5efbb2c86418927a7be18d97 1 parent 8815fc5
@brentonashworth brentonashworth authored
Showing with 19 additions and 1 deletion.
  1. +18 −0 samples/hello/hello-dev.html
  2. +1 −1  samples/hello/hello.html
View
18 samples/hello/hello-dev.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
2  samples/hello/hello.html
@@ -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]));
Please sign in to comment.
Something went wrong with that request. Please try again.