Sha256: d57871f6361302a5c148cd254c0a475bbf31f6f5773ec183007b981ba20a6d3c
Contents?: true
Size: 984 Bytes
Versions: 1
Compression:
Stored size: 984 Bytes
Contents
path = File.expand_path("../lib" + File.dirname(__FILE__)) $:.unshift(path) unless $:.include?(path) require 'rubygems' require 'sinatra' require 'sinatra/swf_ditty' get "/swf_plain" do content_type "text/plain" <<"EOD" #{swf("swf/foo.swf")} EOD end get "/swf_with_custom_dom_id" do content_type "text/plain" <<"EOD" #{swf("swf/foo.swf", :dom_id => "dombo", :create_dom_container => false)} EOD end get "/swf_with_flashvars" do content_type "text/plain" <<"EOD" #{swf("foo.swf", :height => 50, :width => 600, :flashvars => {:a => 1, :b => 'two'})} EOD end get "/filename_to_dom_id" do content_type "text/plain" <<"EOD" #{filename_to_dom_id("alpha.swf")} #{filename_to_dom_id("substandard/bravo.swf")} #{filename_to_dom_id("http://bar.org/xyz/charlie.swf")} EOD end get "/hash_to_key_value_string" do content_type "text/plain" <<"EOD" #{hash_to_key_value_string({:a => 1, :b => 2})} #{hash_to_key_value_string({:alpha => 'male', :bravo => 'hamster'})} EOD end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swf_ditty-0.0.5 | test/sinatra_app.rb |