Sha256: af6ace1d9a7e7e3c0952c002485514fbc851f41fe502f8f312809da31f303fcb
Contents?: true
Size: 508 Bytes
Versions: 11
Compression:
Stored size: 508 Bytes
Contents
module Octopress module Ink module Assets class Coffeescript < Javascript def read @compiled ||= compile end def add Plugins.add_js_tag tag Plugins.static_files << StaticFileContent.new(read, destination) end private def compile ::CoffeeScript.compile(render) end def destination File.join(base, plugin.slug, file.sub(/\.coffee/,'.js')) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems