mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
As part of a docs pass we will explain the new way to use coffeescript globals. (In short: in a package, anything declared with `api.export` becomes package-level and exported. If you want something package-level and not exported, or app-level, there's an object `share` and you can assign to fields on it.)
16 lines
515 B
HTML
16 lines
515 B
HTML
<template name="pkg_coffeescript">
|
|
{{#better_markdown}}
|
|
## `coffeescript`
|
|
|
|
[CoffeeScript](http://coffeescript.org/) is a little language that
|
|
compiles into JavaScript. It provides a simple syntax without lots of
|
|
braces and parentheses. The code compiles one-to-one into the
|
|
equivalent JS, and there is no interpretation at runtime.
|
|
|
|
CoffeeScript is supported on both the client and the server. Files
|
|
ending with `.coffee` or `.litcoffee` are automatically compiled to
|
|
JavaScript.
|
|
|
|
{{/better_markdown}}
|
|
</template>
|