mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Update coffee-script url
This commit is contained in:
parent
056bf57198
commit
90ede786e8
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ A longer example, demonstrating how to invoke the CoffeeScript compiler:
|
|||
``` ruby
|
||||
require "execjs"
|
||||
require "open-uri"
|
||||
source = open("http://jashkenas.github.com/coffee-script/extras/coffee-script.js").read
|
||||
source = open("http://coffeescript.org/extras/coffee-script.js").read
|
||||
|
||||
context = ExecJS.compile(source)
|
||||
context.call("CoffeeScript.compile", "square = (x) -> x * x", :bare => true)
|
||||
|
|
Loading…
Reference in a new issue