Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Comprehensive example #37

Closed
kianoshp opened this issue Nov 12, 2012 · 3 comments
Closed

More Comprehensive example #37

kianoshp opened this issue Nov 12, 2012 · 3 comments

Comments

@kianoshp
Copy link

Andrew,

I am fairly new to node. Can you give (or point me in the right direction) where your node plugin will interact with express and jade? I really want to use Sass instead of Stylus, so any help will be apreciated.

Thanks,

Kianosh

@deanmao
Copy link
Contributor

deanmao commented Nov 12, 2012

There's an example in the "examples" directory. node-sass can be used as a middleware. Is there something specific you're looking for?

@kianoshp
Copy link
Author

I have read through the example and I am slightly confused (and this has to do with the fact that I am very new to node).
I understand that this line will create a server which will compile the Sass file:

var server = connect.createServer(
  sass.middleware({
      src: __dirname
    , dest: __dirname + '/public'
    , debug: true
  }),
  connect.static(__dirname + '/public')
);

What is the equivalent line in Express? app.set()? app.use()? I apologize if my questions are basic or incomprehensible however I am trying to use Sass with my project without having to compile it separately. I am also really excited about using libsass!!

Thanks again,

Kianosh

@andrew
Copy link
Contributor

andrew commented Nov 13, 2012

Agreed, the documentation needs more work, including different examples and use cases, I'll try and work on improving it later this week.

@ghost ghost assigned andrew Jan 7, 2013
@andrew andrew closed this as completed Oct 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants