Open the linked story
jashkenas.github.com
1–10 of 11 posts
Re: <script type="text/coffeescript">
#2Re: <script type="text/coffeescript">
#3http://jashkenas.github.com/coffee-script/#scripts
The salient point is that CoffeeScript now automatically compiles any code in a script tag with type text/coffeescript. Pretty cool.
Re: <script type="text/coffeescript">
#4http://news.ycombinator.com/item?id=1014080
I did something like this for Objective-J awhile back, but it's not particularly useful (http://github.com/tlrobinson/cappuccino-experiments/blob/mas...)
Re: <script type="text/coffeescript">
#5Re: <script type="text/coffeescript">
#6http://news.ycombinator.com/item?id=1014080
I think the OP was pointing out that you can now use CoffeeScript in tags. I did something like this for Objective-J awhile back, but it's not particularly useful ( http://github.com/tlrobinson/cappuccino-experiments/blob/mas... )
But if you just want to play with it, or prototype a web page, it's fun for that.
Re: <script type="text/coffeescript">
#7Re: <script type="text/coffeescript">
#8If you view source, you'll see something along these lines:
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()
Re: <script type="text/coffeescript">
#9Re: <script type="text/coffeescript">
#10How does this compare with parenscript?