Sha256: 3914a7d16d70f6d49c981e6b2258d3220413f5a465fd21a726a5c3183be2e26e

Contents?: true

Size: 985 Bytes

Versions: 5

Compression:

Stored size: 985 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; module Type; module JavaScript; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/java_script.rb ~~~~~~~~~~~
# -*- encoding : utf-8 -*-
require 'uglifier'

include Machine
include MachineInput

store_machine_output :filetype => "js"

machine_input do
  Uglifier.compile(format(:js)._render_core)
end

def clean_html?
  false
end


format do
  def chunk_list  #turn off autodetection of uri's
    :inclusion_only
  end
end

format :html do
  view :editor, :mod=>Html::HtmlFormat
  view :content_changes, :mod=>CoffeeScript::HtmlFormat

  view :core do |args|
    highlighted_js = ::CodeRay.scan( _render_raw, :js ).div
    process_content highlighted_js
  end

end

def diff_args
   {:format=>:text}
end


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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.16.6 tmpsets/set/mod004-03_machines/type/java_script.rb
card-1.16.5 tmpsets/set/mod004-03_machines/type/java_script.rb
card-1.16.4 tmpsets/set/mod004-03_machines/type/java_script.rb
card-1.16.3 tmpsets/set/mod004-03_machines/type/java_script.rb
card-1.16.2 tmpsets/set/mod004-03_machines/type/java_script.rb