Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
0b5473c1
Commit
0b5473c1
authored
Apr 27, 2012
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated readme
parent
b020012e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
README.md
README.md
+22
-2
No files found.
README.md
View file @
0b5473c1
...
...
@@ -6,16 +6,35 @@ Node bindings to libsass
## Install
cd libsass && make && cd ..
node-waf configure && node-waf build
## Usage
var sass = require('./sass');
sass.render('body{background:blue; a{color:black;}}');
sass.render('body{background:blue; a{color:black;}}', function(css){
console.log(css)
});
## Connect/Express middleware
Recompile
`.scss`
files automatically for connect and express based http servers
var server = connect.createServer(
sass.middleware({
src: __dirname
, dest: __dirname + '/public'
, debug: true
}),
connect.static(__dirname + '/public')
);
Heavily inspired by
<https://github.com/LearnBoost/stylus>
## TODO
*
async cpp
*
error handling
*
express middleware
*
file context
*
folder context
*
sass compression options
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment