0.3.0 • Published 7 years ago

jstransformer-resin v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

jstransformer-resin

Resin support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-resin

API

var resin = require('jstransformer')(require('jstransformer-resin'));

var options = {
  browsers: ['last 2 version', 'ios', 'android 4'],
  // Add a namespace to your classes to avoid collisions
  namespace: 'jstransformer',
  // Add a license to the final output
  license: '// Copyright 2015 and stuff \n'
};
var css = ':root { var-grey: #666; } .btn { box-shadow: 0 1px var(grey); }';

resin.render(css, options);
//=> '// Copyright 2015 and stuff \n.topcoat-btn {\n  box-shadow: 0 1px #666;\n}'

License

MIT