ember-cli-sassjs
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -22,7 +22,10 @@ import Ember from 'ember'; | ||
options: function(options) { | ||
if (options.style) { options.style = window.Sass.style[options.style]; } | ||
if (options.comments) { options.comments = window.Sass.comments[options.comments]; } | ||
console.log(options); | ||
return new Ember.RSVP.Promise(function(resolve) { | ||
window.Sass.options(options, function(response) { | ||
resolve(response); | ||
}) | ||
}) | ||
}); | ||
}); | ||
}, | ||
@@ -34,4 +37,4 @@ | ||
resolve(success); | ||
}) | ||
}) | ||
}); | ||
}); | ||
}, | ||
@@ -43,4 +46,4 @@ | ||
resolve(content); | ||
}) | ||
}) | ||
}); | ||
}); | ||
}, | ||
@@ -52,6 +55,6 @@ | ||
resolve(list); | ||
}) | ||
}) | ||
}); | ||
}); | ||
} | ||
}); |
{ | ||
"name": "ember-cli-sassjs", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Ember addon for Sass.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -33,1 +33,20 @@ # ember-cli-sassjs | ||
``` | ||
### Options | ||
To use options, set them on the Sass object, and call your compile function afterwards: | ||
```javascript | ||
Sass.options({ | ||
// format output: nested, expanded, compact, compressed | ||
style: 'compressed', | ||
// add line comments to output: none, default | ||
comments: 'none' | ||
}); | ||
Sass.compile(scss).then(function(css) { | ||
console.log(css); | ||
}); | ||
``` |
15717
219
52