Sha256: 6791820b5a63c3789ab44abcc3f17bce9ad4952e860c9aa9b93ffab104cdbba4
Contents?: true
Size: 537 Bytes
Versions: 24
Compression:
Stored size: 537 Bytes
Contents
/** * Module dependencies. */ var stylus = require('../') , nodes = stylus.nodes , path = __dirname + '/images.styl' , str = require('fs').readFileSync(path, 'utf8'); // the paths option is merged with the general options // so it is completely optional, however this now allows us to use // url(sprite.gif) instead of url(images/sprite.gif) stylus(str) .set('filename', path) .define('url', stylus.url({ paths: [__dirname + '/images'] })) .render(function(err, css){ if (err) throw err; console.log(css); });
Version data entries
24 entries across 24 versions & 1 rubygems