You can also just not convert it to haml. Haml supports embedding html or
you can make an ERB partial.

chris

On Fri, Nov 5, 2010 at 11:27 AM, Nathan Weizenbaum <[email protected]> wrote:

> You can also always run these things through html2haml. The output it gives
> for this is (formatted slightly for readability):
>
> %object{:height => "385", :width => "480"}
>   %param{:name => "movie", :value => "http://\
> nwww.youtube.com/v/FQNYPqfYGp8?fs=1&amp;hl=en_US<http://nwww.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US>
> "}/
>   %param{:name => "allowFullScreen", :value => "true"}/
>   %param{:name => "allowscriptaccess", :value => "always"}/
>   %embed{:allowfullscreen => "true", :allowscriptaccess => "always",
>     :height => "385", :src => "http://\
> nwww.youtube.com/v/FQNYPqfYGp8?fs=1&amp;hl=en_US<http://nwww.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US>
> ",
>     :type => "application/x-\nshockwave-flash", :width => "480"}
>
>
> On Fri, Nov 5, 2010 at 11:20 AM, Ben Schaechter <[email protected]>wrote:
>
>> For this stuff I usually just use the plain filter.  I'd be interested
>> to know if this is the standard way of doing this sort of thing
>> though.
>>
>> So, for example:
>>
>> :plain
>>   <object width="480" height="385"><param name="movie" value="http://
>> www.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US"></param><param
>> name="allowFullScreen" value="true"></param><param
>> name="allowscriptaccess" value="always"></param><embed src="http://
>> www.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US" type="application/x-
>> shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
>> width="480" height="385"></embed></object>
>>
>> For reference:
>> http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#plain-filter
>>
>> Ben
>>
>> On Nov 5, 10:01 am, CrazyCarl <[email protected]> wrote:
>> > so im looking to change this HTML code:
>> > <object width="480" height="385"><param name="movie" value="
>> http://www.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US";></param><param
>> > name="allowFullScreen" value="true"></param><param
>> > name="allowscriptaccess" value="always"></param><embed src="
>> http://www.youtube.com/v/FQNYPqfYGp8?fs=1&hl=en_US"; type="application/x-
>> > shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
>> > width="480" height="385"></embed></object>
>> >
>> > to HAML
>> >
>> > im not really SUPER familiar with how haml works .. i get a few of the
>> > concepts .. and im totally floored that after googling a few things
>> > there actually arent any break downs .. before and after on how to
>> > embed a youtube vid with HAML
>> >
>> > helps?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Haml" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected] <haml%[email protected]>.
>> For more options, visit this group at
>> http://groups.google.com/group/haml?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to