Closed andygill closed 11 years ago
Implemented a basic static compiler.
staticCompiler :: CompilerOpts -> String -> JS t () -> IO String
where the string is the function name.
staticCompiler def "main" (alert (js "Hello, World")) "var main = function() {\n alert(\"Hello, World\");\n};"
Can be called from index.html, via main();
This will need
A way of bootstrapping without the server, for example the
$.kc.connect("/ajax");
may be replaced with
$.kc.load("filename.js");