Sha256: 7e0c99c5e69b129aef985f18de20c727064ce4040c735ccb366b7daecbc10832
Contents?: true
Size: 516 Bytes
Versions: 7
Compression:
Stored size: 516 Bytes
Contents
var stylus = require('stylus'); function compiler(str, options, plugins, imports) { var style = stylus(str, options); var output = ''; for(var name in plugins) { var fn = require(name); style.use(fn(plugins[name])); } imports.forEach(function(path) { style.import(path); }) style.render(function(error, css) { if(error) throw error; output = css; }) return output; } function convert(str) { return stylus.convertCSS(str); } function version() { return stylus.version; }
Version data entries
7 entries across 7 versions & 1 rubygems