Sha256: 02acd97fca57dc038e7e7ce62bc8caa2aebfb69de34e5bbad54306a3b9ced810

Contents?: true

Size: 317 Bytes

Versions: 17

Compression:

Stored size: 317 Bytes

Contents

include_set Abstract::Machine

store_machine_output filetype: "js"

def ok_to_read
  true
end

view :javascript_include_tag do
  %(
    <script src="#{card.machine_output_url}" type="text/javascript"></script>
  )
end

format :html do
  def raw_help_text
    "JavaScript (or CoffeeScript) for card's page."
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
card-mod-script-0.11.7 set/right/script.rb
card-mod-script-0.12.0 set/right/script.rb
card-mod-script-0.11.6 set/right/script.rb
card-mod-script-0.11.5 set/right/script.rb
card-mod-script-0.11.4 set/right/script.rb
card-mod-script-0.11.3 set/right/script.rb
card-mod-script-0.11.2 set/right/script.rb
card-mod-script-0.11.1 set/right/script.rb
card-mod-script-0.11.0 set/right/script.rb
card-1.100.0 mod/settings/set/right/script.rb
card-1.99.6 mod/settings/set/right/script.rb
card-1.99.5 mod/settings/set/right/script.rb
card-1.99.4 mod/settings/set/right/script.rb
card-1.99.3 mod/settings/set/right/script.rb
card-1.99.2 mod/settings/set/right/script.rb
card-1.99.1 mod/settings/set/right/script.rb
card-1.99.0 mod/settings/set/right/script.rb