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
◆ 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 | $less | LESS content to compile |
Array | $variables | Additional variables for the LESS compilation |
- Returns
- String containing the generated CSS
◆ CACHE_KEY_LESS
const CACHE_KEY_LESS = '/assets/less-prefix' |
The documentation for this class was generated from the following file: