Skip to content

Commit

Permalink
pass stylus object!
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Nov 27, 2011
1 parent 5c852d0 commit 31f0d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/livestyl.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ exports.compile = function(mainfile, options, next) {
};

if (typeof options.stylus != 'function')
options.stylus = function(o) {
options.stylus = function(o, stylus) {
return o;
};

Expand All @@ -131,7 +131,7 @@ exports.compile = function(mainfile, options, next) {
.set('filename', mainfile)
.set('firebug', options.debug)
.include(path.dirname(mainfile));
styl = options.stylus(styl);
styl = options.stylus(styl, stylus);
styl.render(function(err, css) {
if (err) {
console.log('\n\n\n\n\n\x07')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "livestyl",
"version": "0.3.0",
"version": "0.3.1",
"author": "dtinth",
"dependencies": {
"stylus": "0.19.3",
Expand Down

0 comments on commit 31f0d21

Please sign in to comment.