Skip to content

Instantly share code, notes, and snippets.

@johnbendi
Created January 18, 2012 02:39
Show Gist options
  • Save johnbendi/1630506 to your computer and use it in GitHub Desktop.
Save johnbendi/1630506 to your computer and use it in GitHub Desktop.
cljsc/build output and host html
hello.js:
goog.addDependency("../cljs/core.js", ['cljs.core'], ['goog.string', 'goog.string.StringBuffer', 'goog.object', 'goog.array']);
goog.addDependency("../w4Qt1.js", ['hello'], ['cljs.core']);
hello.html:
<html>
<head></head>
<body>
<script type="text/javascript" src="out/goog/base.js"></script>
<script type="text/javascript" src="hello.js"></script>
<script type="text/javascript">
goog.require('hello');
</script>
<script type="text/javascript">
alert(hello.greet("ClojureScript"));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment