1
- # lessphp v0.3.0
1
+ # lessphp v0.3.1
2
2
### < http://leafo.net/lessphp >
3
3
4
4
` lessphp ` is a compiler for LESS written in PHP. The documentation is great,
5
- so check it out: < http://leafo.net/lessphp/docs/ > . Here's a quick tutorial:
5
+ so check it out: < http://leafo.net/lessphp/docs/ > .
6
6
7
- ### How to use in your php project
7
+ Here's a quick tutorial:
8
+
9
+ ### How to use in your PHP project
8
10
9
11
Copy ` lessc.inc.php ` to your include directory and include it into your project.
10
12
@@ -19,6 +21,9 @@ is newer than the output file.
19
21
exit($ex->getMessage());
20
22
}
21
23
24
+ ` lessc::ccompile ` is not aware of imported files that change. Read [ about
25
+ ` lessc::cexecute ` ] ( http://leafo.net/lessphp/docs/#compiling_automatically ) .
26
+
22
27
Note that all failures with lessc are reported through exceptions.
23
28
If you need more control you can make your own instance of lessc.
24
29
@@ -42,17 +47,17 @@ An additional script has been included to use the compiler from the command
42
47
line. In the simplest invocation, you specify an input file and the compiled
43
48
css is written to standard out:
44
49
45
- ~> plessc input.less > output.css
50
+ $ plessc input.less > output.css
46
51
47
52
Using the -r flag, you can specify LESS code directly as an argument or, if
48
53
the argument is left off, from standard in:
49
54
50
- ~> plessc -r "my less code here"
55
+ $ plessc -r "my less code here"
51
56
52
57
Finally, by using the -w flag you can watch a specified input file and have it
53
58
compile as needed to the output file
54
59
55
- ~> plessc -w input-file output-file
60
+ $ plessc -w input-file output-file
56
61
57
62
Errors from watch mode are written to standard out.
58
63
0 commit comments