LESS Compiler for assets.
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 4.4
compile |
( |
|
$input, |
|
|
array |
$variables = [] |
|
) |
| |
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 | $input | LESS content to compile |
array | $variables | Additional variables for the LESS compilation |
- Returns
- string containing the generated CSS
Implements Compiler.
Returns an instance of the compiler
- Returns
- Assets instance
Implements Compiler.
const CACHE_KEY = '/assets/less-prefix' |
The documentation for this class was generated from the following file: