I think this should probably point here:<p><a href="http://jashkenas.github.com/coffee-script/#scripts" rel="nofollow">http://jashkenas.github.com/coffee-script/#scripts</a><p>The salient point is that CoffeeScript now automatically compiles any code in a script tag with type text/coffeescript. Pretty cool.
The gist of it is this. If you include the minified version of the CoffeeScript compiler on a webpage (43k, gzipped), it will compile and evaluate the inline coffeescripts on the page. That documentation site uses it to hook up the menu and the "Try CoffeeScript" demonstration in the toolbar.<p>If you view source, you'll see something along these lines:<p><pre><code> <script type="text/coffeescript">
window.repl_run: ->
try
eval window.compiled_js
catch error then alert error
close_menus: ->
current_nav.removeClass 'active' if current_nav
current_nav: null
$(document.body).click -> close_menus()
</script></code></pre>
While I like the concept of simplifying to increase productivity, I am not sure the source code of Coffeescript is any better than the original source code of JavaScript itself. The idea should be to simplify the languages, but as far as simplification is concerned, I think JavaScript is incredibly easy to learn and needs little simplification to its core syntax. There have been other projects, such as Dojo that make the complex tasks of JavaScript easier, and these I find incredibly useful, but to change the syntax of the language without significantly reducing the code size and complexity does not present a lot of value for the project. If this is expanded with one line AJAX scripts, the potential would be vastly improved for acceptance of this type of syntax replacement scheme.