O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The client side

To make our to-do application work, we're going to copy the client-side jQuery code that we created in Chapter 3, CoffeeScript and jQuery. We're going to put it in a file named todo.coffee.

Our next decision is, where shall we put this file? How will we compile and use its output in our application?

We could do the same thing as we did when we built our application in Chapter 3, CoffeeScript and jQuery, that is, create a src folder containing the client-side offeeScript code, then compile it using the coffee command with the --watch flag. The outputted JavaScript could then go in our public folder where we can include it as normal. But this would mean we would have two separate background tasks running, the supervisor task for running ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required