skeeto/skewer-mode — pull request #19 by ZaneA (2013-04-21 02:41:13+00:00)
Title: Skewer-html mode (like skewer-css)

Hi there,

I have written a `skewer-html` mode using `skewer-css` as a base. The additional JavaScript hasn't yet been tested on IE (which I guess will need a quick fix for the innerHTML), but otherwise this is working great for me.

It adds a few functions that allow you to "eval" HTML (`skewer-html-eval`, and interactive helpers), which in this case translates to appending HTML to the body, but using the prefix argument you can easily specify an alternative selector and choose to replace instead of append. There is also another function that lets you pull HTML from a selector into the current buffer (`skewer-html-fetch-selector`), which I find useful if I have been appending stuff for a while.

I have also updated the README to reflect the new keybindings.

Let me know if anything seems a bit off with this patch, but hopefully all is good and can be merged as is.

Cheers,
Zane