This commit is contained in:
Chris Wanstrath 2011-09-04 14:23:48 -07:00
parent dd9f35d6b6
commit e44414ae26
2 changed files with 1 additions and 2 deletions

View File

@ -33,11 +33,9 @@
else {
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
NSString *bootstrapPath = [resourcePath stringByAppendingString:@"/src/require.js"];
NSString *coffeePath = [resourcePath stringByAppendingString:@"/vendor/coffee-script.js"];
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
[jsc setObject:self withName:@"WindowController"];
[jsc evalJSFile:bootstrapPath];
[jsc evalJSFile:coffeePath];
NSURL *resourceURL = [[NSBundle mainBundle] resourceURL];
NSURL *htmlURL = [resourceURL URLByAppendingPathComponent:@"static"];

View File

@ -46,6 +46,7 @@ exts =
__jsc__.evalJSString_withScriptPath code, file
__defines.pop()?.call()
coffee: (file) ->
{CoffeeScript} = require 'coffee-script'
exts.js file, CoffeeScript.compile __read file
resolve = (file) ->