SassCompiler

Implements \ScssCompilerInterface

This class make use of the php-sass module wich uses the libsass library.

Class SassCompiler

package

Default

Methods

__construct

__construct() 

addImportPath

addImportPath( $path) : mixed

Arguments

$path

Response

mixed

getFormatter

getFormatter() : integer

Response

integer

getImportPath

getImportPath() : array

Response

array

getVariables

getVariables() : array

Response

array

parseAdditionalScssFiles

parseAdditionalScssFiles() : string

Response

string

parseFile

parseFile( $filename) : boolean|string

Arguments

$filename

Response

boolean|string

parseIncludePaths

parseIncludePaths() : string

Response

string

parseVariables

parseVariables() : string

Response

string

serve

serve(string $fileToServe) : mixed

Arguments

$fileToServe

string

Response

mixed

setAdditionalScssFiles

setAdditionalScssFiles(array<mixed,string>|string $scss) 

Arguments

$scss

array<mixed,string>|string

Path to scss files

setBasePath

setBasePath(string $basePath) : mixed

Arguments

$basePath

string

Response

mixed

setFormatter

setFormatter(integer|mixed $formatter) : mixed

Arguments

$formatter

integer|mixed

Response

mixed

setVariables

setVariables(array $variables) : mixed

Arguments

$variables

array

Response

mixed

Properties

instance

instance : \Sass
var

Type(s)

\Sass

additionalScssFiles

additionalScssFiles : 

Type(s)

importPaths

importPaths : 

Type(s)

additionalVariables

additionalVariables : 

Type(s)

basePath

basePath : 

Type(s)