Stud.IP  6.0
SASSCompiler Class Reference
Inheritance diagram for SASSCompiler:
Compiler

Public Member Functions

 compile ($input, array $variables=[])
 

Static Public Member Functions

static getInstance ()
 

Data Fields

const CACHE_KEY = '/assets/sass-prefix'
 

Detailed Description

SCSS Compiler for assets.

Uses scssphp https://scssphp.github.io/scssphp/.

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
Since
Stud.IP 4.4

Member Function Documentation

◆ compile()

compile (   $input,
array  $variables = [] 
)

Compiles a scss string. This method will add all neccessary imports and variables for Stud.IP so almost all mixins and variables of the core system can be used. This includes colors and icons.

Parameters
String$inputScss content to compile
array$variablesAdditional variables for the SCSS compilation
Returns
String containing the generated CSS

Implements Compiler.

◆ getInstance()

static getInstance ( )
static

Returns an instance of the compiler

Returns
Assets instance

Implements Compiler.

Field Documentation

◆ CACHE_KEY

const CACHE_KEY = '/assets/sass-prefix'

The documentation for this class was generated from the following file: