ckirkendall / enfocus

DOM manipulation and templating library for ClojureScript inspired by Enlive.
http://ckirkendall.github.com/enfocus-site/
370 stars 41 forks source link

Extractor extract node #106

Closed karneaud closed 8 years ago

karneaud commented 8 years ago

can the extractor be use to extract node from a tree?

I'm trying to extract HTML fragment into a hiccup form to be manipulates else where

ckirkendall commented 8 years ago

The easiest way I can think to do this is to call .-outerHTML on each node returned by the extractor and then use something like https://github.com/davidsantiago/hickory to convert to hiccup.