Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (57 sloc) 2.576 kb
30a21e5d »
2010-08-29 Fixed merge problem with readme
1 # scss-js
2 ## A JavaScript implementation of SCSS (Sassy CSS)
3
7fec56ff »
2010-09-06 Updated README to reflect 0.2.0 release and current status
4 ## API
5
6 ### Connect Compiler
7
8 var sys = require('sys'),
9 fs = require('fs'),
10 compiler = require('../src/scssCompiler');
11
12 fs.readFile(__dirname + '/blog.scss', function(err, scssFile) {
13 compiler.compile(scssFile.toString(), function(err, css) {
14 if(err) {
15 sys.puts(sys.inspect(err));
16 } else {
17 sys.puts(css);
18 }
19 });
20 });
21
22 The compile function takes a string and returns another string with the file's css.
23
24 ## Where Does the Project Stand?
25
26 ### What's Usable?
27 * CSS Selectors
28 * Nested Rules
29 * Variables
30 * Fixed Mixins
31
4f50cade »
2010-09-06 Forgot a question mark in the README
32 ### What Needs Work?
7fec56ff »
2010-09-06 Updated README to reflect 0.2.0 release and current status
33 * CSS Selectors
34 * Variable and Mixin names
35
277710e6 »
2010-09-06 More formatting on README
36 ### What's Unimplemented?
7fec56ff »
2010-09-06 Updated README to reflect 0.2.0 release and current status
37 * Parameterized Mixins
38 * Functions
39
40 ## Next Release (0.2.0)
41
42 Full CSS Selector implementation
43
44
30a21e5d »
2010-08-29 Fixed merge problem with readme
45 ## Special Thanks
46
47 I would like to give special thanks to [Hampton Catlin](http://hamptoncatlin.com),
48 [Nathan Weizenbaum](http://nex-3.com), and [Chris Eppstein](http://acts-as-architect.blogspot.com)
49 for starting and continuing the haml and sass project. I'd also like to thank the rest of the people
50 that have contributed to [Sass](http://sass-lang.com/) and I hope I can catch up to your
51 awesomeness.
52
53 ## Modified MIT License
54
55 Copyright (c) 2010 Brian Mavity
56
57 Permission is hereby granted, free of charge, to any person obtaining a copy
58 of this software and associated documentation files (the "Software"), to deal
59 in the Software without restriction, including without limitation the rights
60 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
61 copies of the Software, and to permit persons to whom the Software is
62 furnished to do so, subject to the following conditions:
63
64 Except as contained in this notice, the name(s) of the above copyright
65 holders shall not be used in advertising or otherwise to promote the sale,
66 use or other dealings in this Software without prior written authorization.
67
68 The above copyright notice and this permission notice shall be included in
69 all copies or substantial portions of the Software.
70
71 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
74 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
77 THE SOFTWARE.
Something went wrong with that request. Please try again.