Skip to content

Instantly share code, notes, and snippets.

@jwrubel
Created March 6, 2012 14:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwrubel/1986681 to your computer and use it in GitHub Desktop.
Save jwrubel/1986681 to your computer and use it in GitHub Desktop.
swf_tag syntax in slim (should work for haml too)
= swf_tag "name_of_swf", \
options={:dom_id => "dom_element", \
:size => "320x240", :version => "10.1", \
:flashvars => {"a" => "test"}, \
:params => {"menu" => "false", "wmode" => "direct"}, \
:attributes => { "align" => "left", "class" => "flash_css_class" }}
div(id="dom_element")
@srbiv
Copy link

srbiv commented Mar 6, 2012

Any suggestions on what that width and height should be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment