如何在Google App Engine上使用Coffeescript

Does anyone know if it is possible to use Coffeescript on Google App Engine? If so how can this be done with the app engine Python or Go platforms?

Coffeescript compiles to Javascript, which can be run in a web browser. In that case, App Engine can serve up the resulting javascript.

I don't know of any way to compile coffeescript to python, java or go though, so you can't use it as a server side language.

It's possible.

1. Script Tag Method

You may use the Coffeescript compiler:

http://coffeescript.org/extras/coffee-script.js

Add it into your page header:

<script type="text/javascript" src="/coffee-script.js" />
<script type="text/coffeescript" src="/your_script.coffee" />

Use this method for testing or lite-app

2. MediaGenerator for Django

If you use Django frameworks, this may be the best for you:

http://www.allbuttonspressed.com/projects/django-mediagenerator#coffeescript

It will compile your coffeescript and get things done for you!

final few words: I am newbie in development. I only can read JS but like Coffeescipt a lot. After a lot of exploration. I finally choose Ruby on Rails instead of Python on some frameworks. Because asset pipeline is less-config and easy to learn for me. BTW, Python is still my favour language over Ruby XD