Nice tip. On the command-line:

  $ pbpaste | html2haml | pbcopy

Replace pbcopy/paste commands with appropriate clipboard manipulation
commands if on Linux.


On Mon, Jun 28, 2010 at 22:51, steve ross <[email protected]> wrote:

> Say you copy and paste some snippet of code into yours and it's in HTML.
> Most often, for me, it's script tags. In Textmate, just select the whole
> thing, press Cmd+Opt+R, and use html2haml as the command. Use "selection" as
> the input and "replace selection" as the output.
>
> Just like that, beautiful Haml!
>
> Works with Sass as well. Just use css2sass.
>
> Steve
>
> --
> 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