CoffeeScript is a more 'refined' version of JavaScript that lets you write code like:
number = -42 if opposite
CoffeeScript is normally used on the server, but steal lets you load CoffeeScripts
in the browser, and compress their JavaScript output into your production builds.
Use
First, create a coffee script like:
console.log "There are no () around this string!"
Save this in a file named log.coffee.
Next, you have to require the steal/coffee plugin and then use
steal.coffee to load your coffee script:
Requires a CoffeeScript script.
CoffeeScript is a more 'refined' version of JavaScript that lets you write code like:
CoffeeScript is normally used on the server, but steal lets you load CoffeeScripts in the browser, and compress their JavaScript output into your production builds.Use
First, create a coffee script like:
Save this in a file named
log.coffee.Next, you have to require the
steal/coffeeplugin and then use steal.coffee to load your coffee script:Loads CoffeeScript files relative to the current file. It's expected that all CoffeeScript files end with
coffee.