Sha256: d09e9613c0d650765a3e2a84dc71b2fb044ce74a052b8138ceeaddca98dfa364
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 Bytes
Contents
# -*- 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 def chunk_list #turn off autodetection of uri's #TODO with the new format pattern this should be handled in the js format :inclusion_only end format :html do view :editor, :mod=>PlainText::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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wagn-1.14.7 | mod/03_machines/set/type/java_script.rb |
wagn-1.14.6 | mod/03_machines/set/type/java_script.rb |
wagn-1.14.5 | mod/03_machines/set/type/java_script.rb |