CoffeeScript (http://coffeescript.org) is a language that compiles down to JavaScript.
Div | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Starting with version 5.4, Tapestry can automatically compile your CoffeeScript code into JavaScript on the fly. This is done with the optional tapestry-webresources module. It is highly recommended for anyone who wants to use CoffeeScript in their application ... just let Tapestry do the compilation at runtime (with access to Tapestry's full exception reporting capabilities).
To use the tapestry-webresources module, just add the JAR to your project. For example, if you're using Maven:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-webresources</artifactId> <version>${tapestry-release-version}</version> </dependency> |
All of Tapestry's own client-side code is written in CoffeeScript and compiled, at build time, to JavaScript.
Info |
---|
You are completely free to use either JavaScript or CoffeeScript in your Tapestry application. |
CoffeeScript versus JavaScript
...