diff --git a/coffeescript/01_introduction.html b/coffeescript/01_introduction.html index a399994..681612a 100644 --- a/coffeescript/01_introduction.html +++ b/coffeescript/01_introduction.html @@ -74,8 +74,8 @@

Initial setup

As you can see above, the default extension of CoffeeScript files is .coffee. Amongst other things, this will allow text editors like TextMate to work out which language the file contains, giving it the appropriate syntax highlighting. By default, TextMate doesn't include support for CoffeeScript, but you can easily install the bundle to do so.

If all this compilation seems like a bit of an inconvenience and bother, that's because it is. We'll be getting onto ways to solve this by automatically compiling CoffeeScript files, but first lets take a look at the language's syntax.

- +
Chapter 2 (CoffeeScript Syntax) »
- \ No newline at end of file + diff --git a/coffeescript/02_syntax.html b/coffeescript/02_syntax.html index 7d4226d..a90b352 100644 --- a/coffeescript/02_syntax.html +++ b/coffeescript/02_syntax.html @@ -410,8 +410,8 @@

Aliases & the Existential Operator

blackKnight.getLegs().kick?()
 
- + `
Chapter 3 (Classes) »
- \ No newline at end of file + diff --git a/coffeescript/03_classes.html b/coffeescript/03_classes.html index d3e7bbf..3aa0f84 100644 --- a/coffeescript/03_classes.html +++ b/coffeescript/03_classes.html @@ -246,8 +246,8 @@

Extending classes

Super simple and elegant!

- +
Chapter 4 (Idioms) »
- \ No newline at end of file + diff --git a/coffeescript/04_idioms.html b/coffeescript/04_idioms.html index 9d9dd3d..f522d59 100644 --- a/coffeescript/04_idioms.html +++ b/coffeescript/04_idioms.html @@ -279,8 +279,8 @@

Private variables

In other words, classToType is completely private, and can never again be referenced outside the executing anonymous function. This pattern is a great way of encapsulating scope and hiding variables.

- +
Chapter 5 (Compiling) »
- \ No newline at end of file + diff --git a/coffeescript/05_compiling.html b/coffeescript/05_compiling.html index d1206b7..93c8e9d 100644 --- a/coffeescript/05_compiling.html +++ b/coffeescript/05_compiling.html @@ -126,8 +126,8 @@

Server side support

Django also has support for CoffeeScript through special template tags. It works with both inline code and external files.

Both Ruby and Python pipe out to Node and the CoffeeScript lib behind the scenes when compiling CoffeeScript, so you'll need to have those installed during development. If you're using Node directly as a backend for your site, CoffeeScript integration is even simpler and you can use it for both the backend and frontend code. We're going to talk more about this in the next chapter, using Stitch to serve all our client-side CoffeeScript.

- +
Chapter 6 (Applications) »
- \ No newline at end of file + diff --git a/coffeescript/06_applications.html b/coffeescript/06_applications.html index 5e25c85..8c5bbda 100644 --- a/coffeescript/06_applications.html +++ b/coffeescript/06_applications.html @@ -290,8 +290,8 @@

Additional libraries

As for serving up application, Hem is a great choice, supporting both CommonJS and NPM modules and integrating seamlessly with the CoffeeScript MVC framework Spine. node-browsify is another similar project. Or if you want to go lower level with express integration, there's Trevor Burnham's connect-assets

You can find a full list of CoffeeScript web framework plugins, on the project's wiki.

- +
Chapter 7 (The Bad Parts) »
- \ No newline at end of file +