https://github.com/Shinmera/softdrink.git
git clone 'https://github.com/Shinmera/softdrink.git'
(ql:quickload :softdrink)
Softdrink is a small toolkit to extract CSS from HTML or inline it. Softdrink relies on lQuery and LASS.
Extracting style information happens with slurp.
(softdrink:slurp "<div><foo/><foo id=\"bla\" style=\"bar:baz;bluh: bbab\" /></div>")
Injecting CSS back in happens with mix. You can then prettify the output with pour.
(softdrink:pour (softdrink:mix "<foo><p/></foo>" '(p :text-decoration underline)))
Softdrink includes support for the LASS item-types :BLOCK and :PROPERTY. Any other type needs to be added with DEFINE-INLINER or DEFINE-MANIPULATOR.