lessphp
lessphp copied to clipboard
LESS compiler written in PHP
Fixes leafo/lessphp#501
If you use a single Less instance to parse multiple strings and these strings share `@import` statements, only the first `parse` will actually execute the `@import`.
Added built in min, max, abs and convert functions. Enhanced mod and pow so that they return the unit of the first parameter as per the less function reference: http://lesscss.org/functions/#math-functions-mod...
The stable version of lessphp doesn't support a recursion loop. But an online version compiles it without a single error. I've included a test case.
When an imported less file is calling an undefined mixin, LessPHP is unable to throw the correct file and line number. This fix adds a reference to the parser and...
Hi! This PR enable registering a callback function that will be use to resolve imports. See #240 or https://github.com/dsferruzza/lessphp/tree/loader/docs/docs.md (**Loader** section) for the details.
Implemented caching feature (that exists in main module) to `plessc` command-line tool. Added `-q` key to `plessc` in order to enable this new feature. The code if based on this...