Permalink
Browse files

Snockets support

  • Loading branch information...
1 parent c19f2c5 commit ace85a2200afbfe2848401cab5923dbb2070cc3f @AndrewRadev AndrewRadev committed Mar 27, 2012
Showing with 847 additions and 838 deletions.
  1. +13 −0 compiler.co
  2. +834 −838 compiler.js
View
@@ -484,6 +484,18 @@ class exports.CoffeeScriptCompiler extends Compiler
-> super ...
+class exports.SnocketsCompiler extends Compiler
+ id : 'snockets'
+ ext : '.coffee'
+ destExt : '.js'
+ module : 'snockets'
+ options : { async:false }
+ -> super ...
+ compileSync : (text, options={}) ->
+ snockets = new @module
+ snockets.getConcatenation @info.src, options
+
+
class exports.CocoCompiler extends Compiler
id : 'coco'
ext : '.co'
@@ -637,6 +649,7 @@ class exports.YamlCompiler extends Compiler
# Register Compilers
[ CoffeeScriptCompiler
+ SnocketsCompiler
CocoCompiler
UglifyCompiler
JadeCompiler
Oops, something went wrong.

0 comments on commit ace85a2

Please sign in to comment.