Method | Description | |
---|---|---|
__construct ( string $dir, string $cacheDir = null, |
Constructor | |
checkedCachedCompile ( string $in, string $out, boolean $force = false ) : string | Based on explicit input/output files does a full change check on cache before compiling. | |
checkedCompile ( string $in, string $out ) : boolean | Check if file need compiling | |
compileFile ( string $in, string $out = null ) : string | boolean | Compile .scss file | |
serve ( string $salt = '' ) | Compile requested scss and serve css. Outputs HTTP response. | |
serveFrom ( string $path ) | Helper method to serve compiled scss | |
showErrorsAsCSS ( boolean $show = true ) | Render errors as a pseudo-element within valid CSS, displaying the errors on any page that includes this CSS. |
Method | Description | |
---|---|---|
cacheName ( $fname ) : string | Get path to cached .css file | |
compile ( string $in, string $out ) : array | Compile .scss file | |
createErrorCSS ( Exception $error ) : string | Format error as a pseudo-element in CSS | |
findInput ( ) : string | Get path to requested .scss file | |
getIfModifiedSinceHeader ( ) : string | null | Get If-Modified-Since header from client request | |
getIfNoneMatchHeader ( ) : string | null | Get If-None-Match header from client request | |
inputName ( ) : string | null | Get name of requested .scss file | |
join ( string $left, string $right ) : string | Join path components | |
metadataName ( $out ) : string | Get path to meta data | |
needsCompile ( string $out, string &$etag ) : boolean | Determine whether .scss file needs to be re-compiled. |
protected createErrorCSS ( Exception $error ) : string | ||
$error | Exception | |
return | string |
protected getIfModifiedSinceHeader ( ) : string | null | ||
return | string | null |
protected getIfNoneMatchHeader ( ) : string | null | ||
return | string | null |
protected metadataName ( $out ) : string | ||
return | string |
public showErrorsAsCSS ( boolean $show = true ) | ||
$show | boolean |