attach-css
Localizes CSS based on a virtual DOM tree.
example
var attachCSS = var createElement = var button = var vtree = button var css = // css will equal: button.my-button { cursor: pointer; }
api
attachCSS(src, vtree[, options])
src
- A string of CSS to localize.vtree
- A virtual DOM tree to localize against.options
- Options to use when parsing/stringifying the CSS. See https://www.npmjs.com/package/css.
license
(c) 2015 Kyle Robinson Young. MIT License