jcoffeescript icon indicating copy to clipboard operation
jcoffeescript copied to clipboard

Allow setting options after compiler is constructed

Open robfig opened this issue 13 years ago • 0 comments

Just adding a setOptions() method.

This is desirable because individual snippets of coffee may have different preferences on whether they want to be compiled with 'bare' or not. Additionally, creating a new instance of the compiler every time seems wasteful given the relatively complicated constructor.

FYI, I'm using JCoffeeScript in https://github.com/robfig/play-coffee

Thanks! -Rob

robfig avatar Apr 02 '11 03:04 robfig