Stud.IP  4.2 Revision
Compiler Class Reference
Collaboration diagram for Compiler:
Collaboration graph

Static Public Member Functions

static compileLESS ($less, $variables=array())
 

Data Fields

const CACHE_KEY_LESS = '/assets/less-prefix'
 

Detailed Description

Wrapper class for the assets compilation. Supports LESS complilation by now.

Currently uses ILess by mishal https://github.com/mishal/iless.

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 3.4

Member Function Documentation

◆ compileLESS()

static compileLESS (   $less,
  $variables = array() 
)
static

Compiles a less 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$lessLESS content to compile
Array$variablesAdditional variables for the LESS compilation
Returns
String containing the generated CSS
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ CACHE_KEY_LESS

const CACHE_KEY_LESS = '/assets/less-prefix'

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