Sha256: 4440c413a8a12a2ddba7820a7d729a33fc48e5d91deb1b8278d2c93bcba5ccb1
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
module Stitch class CoffeeScriptCompiler < Compiler extensions :cs, :coffee enabled begin require "coffee-script" true rescue LoadError false end def compile(path) source = File.read(path) CoffeeScript.compile(source) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stitch-rb-0.0.4 | lib/stitch/compilers/coffeescript.rb |
stitch-rb-0.0.3 | lib/stitch/compilers/coffeescript.rb |