i have
class Main
test:->
alert "yay!"
in coffeescript, and i want to run that inside my index.html
<script>
$(function(){
//and obv Main.test(); doesn't work
});
</script>
there is a note of this on the website, it says it wouldn't work. But I couldn't find how to make it work. any ideas? i need to find out what coffeescript closure wrapper is.
or does coffeescript execute after document.ready anyway?
thx!