-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
compiler.1
69 lines (65 loc) · 1.28 KB
/
compiler.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "COMPILER" "" "September 2010" "" ""
.
.SH "NAME"
\fBcompiler\fR
.
.SH "Compiler"
The \fIcompiler\fR middleware compiles files that have not yet been compiled, or have been modified\. Good examples of this are \fIsass\fR and \fIless\fR, both of which compile to css\. The compiled data is written to disk, and serving is delegated to the \fIstatic\fR middleware, therefore the \fIdest\fR should be accessible (or the same) as \fIstatic\fR\'s \fIroot\fR option\.
.
.IP "" 4
.
.nf
connect\.createServer(
connect\.compiler({ src: __dirname + \'/public\', enable: [\'sass\'] })
);
.
.fi
.
.IP "" 0
.
.SS "Options"
.
.nf
src Root directory from which to compile files\. Defaults to CWD\.
dest Destination directory of compiled files, defaults to src or CWD\.
enable Enabled compilers, currently supported are "sass", and "less"\.
.
.fi
.
.SS "Supported Compilers"
.
.IP "\(bu" 4
sass
.
.IP "\(bu" 4
less
.
.IP "" 0
.
.SS "Environment Variables"
.
.nf
\-\-compilerSrc
\-\-compilerDest
.
.fi
.
.SS "Links"
.
.IP "\(bu" 4
Sass\.js \fIhttp://github\.com/visionmedia/sass\.js\fR
.
.IP "\(bu" 4
Less\.js \fIhttp://github\.com/cloudhead/less\.js\fR
.
.IP "" 0
.
.SS "See Also"
.
.IP "\(bu" 4
staticProvider
.
.IP "" 0