Sha256: a96ac5c0558a392a341b04853fdbc80c60ef1c3e6407095a6d16d317e9b79a48

Contents?: true

Size: 686 Bytes

Versions: 8

Compression:

Stored size: 686 Bytes

Contents

/**
 * Module dependencies.
 */

var stylus = require('../')
  , utils = stylus.utils
  , nodes = stylus.nodes
  , str = require('fs').readFileSync(__dirname + '/test.styl', 'utf8')
  , fs = require('fs');

stylus(str)
  //.import(__dirname + '/mixins/vendor')
  .set('filename', __dirname + '/test.styl')
  // .set('compress', true)
  // .set('firebug', true)
  // .set('linenos', true)
  // .set('warn', true)
  .set('include css', true)
  .define('string', 'some string')
  .define('number', 15.5)
  .define('some-bool', true)
  .define('list', ['Helvetica Neue', 'Helvetica', 'sans-serif'])
  .render(function(err, css, js){
  if (err) throw err;
  process.stdout.write(css);
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stylus-source-0.22.6 vendor/testing/test.js
stylus-source-0.22.0 vendor/testing/test.js
stylus-source-0.21.2 vendor/testing/test.js
stylus-source-0.21.1 vendor/testing/test.js
stylus-source-0.20.1 vendor/testing/test.js
stylus-source-0.19.8 vendor/testing/test.js
stylus-source-0.19.7 vendor/testing/test.js
stylus-source-0.19.6 vendor/testing/test.js