jstransformer-resin
v0.3.0
Published
Resin support for JSTransformers.
Downloads
5
Keywords
Readme
jstransformer-resin
Resin support for JSTransformers.
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