diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 624045564d..a2fae86487 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -16,7 +16,7 @@ run = executable == true ? 'run' : "run: #{executable}" name = "example#{@counter}" script = "" - import = show_load ? "
" : '' + import = show_load ? " " : '' button = executable ? " " : '' "The CoffeeScript compiler is itself written in CoffeeScript, - using the Jison parser generator. The - command-line version of coffee is available as a - Node.js utility. The - core compiler however, does not - depend on Node, and can be run in any JavaScript environment, or in the + using the Jison parser generator. The + command-line version of coffee is available as a + Node.js utility. The + core compiler however, does not + depend on Node, and can be run in any JavaScript environment, or in the browser (see "Try CoffeeScript", above).
@@ -189,8 +189,8 @@ sudo bin/cake install- Once installed, you should have access to the coffee command, - which can execute scripts, compile .coffee files into .js, + Once installed, you should have access to the coffee command, + which can execute scripts, compile .coffee files into .js, and provide an interactive REPL. The coffee command takes the following options:
@@ -313,7 +313,7 @@ ExpressionsExamples:
- +- Many of the examples can be run (where it makes sense) by pressing the "run" - button towards the bottom right. You can also paste examples into - "Try CoffeeScript" in the toolbar, and play with them from there. + Many of the examples can be run (where it makes sense) by pressing the run + button on the right, and can be loaded into the "Try CoffeeScript" + console by pressing the load button on the left.
CoffeeScript uses Python-style significant whitespace: You don't need to diff --git a/index.html b/index.html index d6c29499e8..11f1992cf8 100644 --- a/index.html +++ b/index.html @@ -226,11 +226,11 @@
The CoffeeScript compiler is itself written in CoffeeScript, - using the Jison parser generator. The - command-line version of coffee is available as a - Node.js utility. The - core compiler however, does not - depend on Node, and can be run in any JavaScript environment, or in the + using the Jison parser generator. The + command-line version of coffee is available as a + Node.js utility. The + core compiler however, does not + depend on Node, and can be run in any JavaScript environment, or in the browser (see "Try CoffeeScript", above).
@@ -264,8 +264,8 @@- Once installed, you should have access to the coffee command, - which can execute scripts, compile .coffee files into .js, + Once installed, you should have access to the coffee command, + which can execute scripts, compile .coffee files into .js, and provide an interactive REPL. The coffee command takes the following options:
@@ -388,7 +388,7 @@Examples:
- +- Many of the examples can be run (where it makes sense) by pressing the "run" - button towards the bottom right. You can also paste examples into - "Try CoffeeScript" in the toolbar, and play with them from there. + Many of the examples can be run (where it makes sense) by pressing the run + button on the right, and can be loaded into the "Try CoffeeScript" + console by pressing the load button on the left.
CoffeeScript uses Python-style significant whitespace: You don't need to @@ -470,7 +470,7 @@
@@ -601,7 +601,7 @@
@@ -730,7 +730,7 @@
If you know the start and end of your loop, or would like to step through in fixed-size increments, you can use a range to specify the start and @@ -840,7 +840,7 @@
var numbers; numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; [].splice.apply(numbers, [3, 4].concat([-3, -4, -5, -6])); -
@@ -1014,7 +1014,7 @@
Things that would otherwise be statements in JavaScript, when used @@ -1063,7 +1063,7 @@
The Existential Operator @@ -1217,7 +1217,7 @@
Soaking up nulls is similar to Ruby's andand gem, and to the @@ -1336,7 +1336,7 @@
@@ -1424,7 +1424,7 @@
If we had used -> in the callback above, @customer would have referred to the undefined "customer" property of the DOM element, @@ -1561,7 +1561,7 @@
@@ -1638,7 +1638,7 @@
@@ -1656,7 +1656,7 @@
var cholesterol, healthy; cholesterol = 127; healthy = (200 > cholesterol && cholesterol > 60); -
var mobyDick; mobyDick = "Call me Ishmael. Some years ago -- never mind how long precisely -- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world..."; -
Heredocs can be used to hold formatted or indentation-sensitive text @@ -1711,7 +1711,7 @@
var html; html = '<strong>\n cup of coffeescript\n</strong>'; -
Double-quoted heredocs, like double-quoted strings, allow interpolation.
@@ -1731,7 +1731,7 @@@@ -1755,7 +1755,7 @@
var OPERATOR; OPERATOR = /^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\.{2,3})/; -
If you need to invoke one task before another — for example, running build before test, you can use the invoke function: