Sha256: 489c471e8cc74c3a9107645b29b3cb2b55ff55ded6b9ff389ce9977102a8e2f0

Contents?: true

Size: 571 Bytes

Versions: 15

Compression:

Stored size: 571 Bytes

Contents

include_set Abstract::AssetGroup

def asset_input_content
  format(:js).render_core
end

format :js do
  view :core do
    card.render_items_and_compress :js
  end
end

def new_asset_constants path
  if path.ends_with? ".js.coffee"
    coffeescript_constants
  elsif path.ends_with? ".js"
    javascript_constants
  end
end

def coffeescript_constants
  { type_id: CoffeeScriptID, set_module: Abstract::AssetCoffeeScript }
end

def javascript_constants
  { type_id: JavaScriptID, set_module: Abstract::AssetJavaScript }
end

def valid_file_extensions
  %w[js coffee]
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
card-mod-script-0.18.1 set/abstract/script_group.rb
card-mod-script-0.18.0 set/abstract/script_group.rb
card-mod-script-0.17.0 set/abstract/script_group.rb
card-mod-script-0.16.0 set/abstract/script_group.rb
card-mod-script-0.15.6 set/abstract/script_group.rb
card-mod-script-0.15.5 set/abstract/script_group.rb
card-mod-script-0.15.4 set/abstract/script_group.rb
card-mod-script-0.15.3 set/abstract/script_group.rb
card-mod-script-0.15.2.pre1 set/abstract/script_group.rb
card-mod-script-0.15.1.1 set/abstract/script_group.rb
card-mod-script-0.15.1 set/abstract/script_group.rb
card-mod-script-0.15.0 set/abstract/script_group.rb
card-mod-script-0.14.2 set/abstract/script_group.rb
card-mod-script-0.14.1 set/abstract/script_group.rb
card-mod-script-0.14.0 set/abstract/script_group.rb