maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
728 stars 58 forks source link

include iced in browser #167

Open linus-amg opened 8 years ago

linus-amg commented 8 years ago

hi, im compiling some coffee-script to javascript in an ace-editor, so i use the browser version of coffee-script and do CoffeeScript.compile('coffee-code'); and out comes javascript code. Now i would like to use IcedCoffeeScript to compile iced in browser to javascript, but im not sure that I use the right file to include, would it be this one? https://github.com/maxtaco/coffee-script/blob/iced2/extras/iced-coffee-script-108.0.9-min.js

meeDamian commented 8 years ago
  1. Go to https://github.com/maxtaco/coffee-script/tree/iced2/extras ,
  2. Pick latest .min version (bottom),
  3. Copy it to your project,
  4. Add <script src="js/iced-coffee-script-108.0.9-min.js"></script> in <head>,
  5. Add <script type="text/coffeescript" src="main.iced"></script> for each iced script you want to include.

NOTE: It's not the best idea to include original .iced scripts in your production code. Better just compile it and include as a .js file.

tl;dr: Yes, current version is 108.0.9.