Is there a SASS.js? Something like LESS.js?

I have used LESS.js before. It's easy to use, something like



I saw SASS.js. How can I use it in a similar way? Parsing a SASS file for use immediately in HTML. It seems like SASS.js is more for use with Node.js?

var sass = require('sass')
sass.render('... string of sass ...')
// => '... string of css ...'

sass.collect('... string of sass ...')
// => { selectors: [...], variables: { ... }, mixins: { ... }}

110
задан Peter Mortensen 7 March 2014 в 20:52
поделиться