Sha256: 928ff22effab7694698f6570a8c326dfacb0e8f47087a82f10785da7ac77a47a

Contents?: true

Size: 1.05 KB

Versions: 37

Compression:

Stored size: 1.05 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Type; module CoffeeScript; extend Card::Set
# ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/machines/set/type/coffee_script.rb ~~
# -*- encoding : utf-8 -*-
require "coffee-script"

include_set Abstract::Script
include_set Abstract::Machine
include_set Abstract::MachineInput

store_machine_output filetype: "js"

machine_input do
  js = Uglifier.compile compile_coffee(format(:js)._render_raw)
  comment_with_source js
end

def compile_coffee script
  ::CoffeeScript.compile script
rescue => e
  raise Card::Error, "CoffeeScript::Error (#{name}): #{e.message}"
end

format :html do
  def default_editor_args args
    args[:ace_mode] ||= "coffee"
  end

  def highlighted_js
    js = card.compile_coffee _render_raw
    ::CodeRay.scan(js, :js).div
  end
end

format do
  view :core do |_args|
    process_content card.compile_coffee(_render_raw)
  end
end


# ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/machines/set/type/coffee_script.rb ~~
end;end;end;end;

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
card-1.93.12 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.11 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.10 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.9 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.8 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.7 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.6 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.5 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.4 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.3 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.2 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.0 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.92.2 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.92.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.92 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.19.1 tmpsets/set/mod011-machines/type/coffee_script.rb