Devised any clever way to handle raw html?
I've been using singult/c2, and I'm loving it so far, but I recently ran into a snag. Digging through the comments, I see this is something you're still actively contemplating, re: "else if string_p m #TODO: how to handle raw html?"
Just wondering if you have any insights for stopgaps in the meanwhile.
Having singult accept raw HTML strings in addition to the hiccup vector markup isn't an issue that we've run into on anything, so I haven't been giving it a ton of thought. Basically the problem boils down to needing to distinguish between a string of text and a string of HTML markup (arguably more too---I recall the Clojure Hiccup project having some people requesting automatic whitespacing of certain characters).
Given that Singult already has two special data types implemented as JavaScript "classes" (the unify datatype and "ignore this subtree" datatype that is in the latest master), I don't see why we couldn't do the same thing for HTML markup or text-to-be-escaped.
I'm in Denmark at the moment and am speaking at Strange Loop on my way back to PDX, so I wouldn't be able to work on this until early October at the earliest. If you want to implement and submit a pull with tests I'd be happy to merge it in.