SCSS server.
More...
SCSS server.
- Author
- Leaf Corcoran leafo.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
Definition at line 4346 of file scssc.php.
scss_server::__construct |
( |
|
$dir, |
|
|
|
$cacheDir = null , |
|
|
|
$scss = null |
|
) |
| |
Constructor.
- Parameters
-
string | $dir | Root directory to .scss files |
string | $cacheDir | Cache directory |
\scssc | null | $scss | SCSS compiler instance |
Definition at line 4548 of file scssc.php.
References join().
scss_server::cacheName |
( |
|
$fname | ) |
|
|
protected |
scss_server::compile |
( |
|
$in, |
|
|
|
$out |
|
) |
| |
|
protected |
scss_server::findInput |
( |
| ) |
|
|
protected |
scss_server::getModifiedSinceHeader |
( |
| ) |
|
|
protected |
Get If-Modified-Since header from client request.
- Returns
- string
Definition at line 4443 of file scssc.php.
Referenced by serve().
scss_server::importsCacheName |
( |
|
$out | ) |
|
|
protected |
scss_server::inputName |
( |
| ) |
|
|
protected |
Get name of requested .scss file.
- Returns
- string|null
Definition at line 4364 of file scssc.php.
Referenced by findInput().
scss_server::join |
( |
|
$left, |
|
|
|
$right |
|
) |
| |
|
protected |
Join path components.
- Parameters
-
string | $left | Path component, left of the directory separator |
string | $right | Path component, right of the directory separator |
- Returns
- string
Definition at line 4355 of file scssc.php.
Referenced by __construct(), cacheName(), and findInput().
scss_server::needsCompile |
( |
|
$in, |
|
|
|
$out |
|
) |
| |
|
protected |
Determine whether .scss file needs to be re-compiled.
- Parameters
-
string | $in | Input path |
string | $out | Output path |
- Returns
- boolean True if compile required.
Definition at line 4421 of file scssc.php.
References importsCacheName().
Referenced by serve().
scss_server::serve |
( |
|
$salt = '' | ) |
|
static scss_server::serveFrom |
( |
|
$path | ) |
|
|
static |
Helper method to serve compiled scss.
- Parameters
-
Definition at line 4570 of file scssc.php.
The documentation for this class was generated from the following file: