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.99.6 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.99.5 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.97.0.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.97.0 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.8 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.7 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.6 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.5 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.4 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.3 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.2 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.96.0 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.95.3 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.95.2 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.95.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.95.0 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.94.1 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.94.0 tmpsets/set/mod011-machines/type/coffee_script.rb
card-1.93.13 tmpsets/set/mod011-machines/type/coffee_script.rb