Open mweimerskirch opened 10 years ago
Wouldn't it be better fix leafo/lessphp
instead?
Does anyone want commit access to this repo? The stuff that is missing for BS3 is actually fairly minimal. Biggest show stopper for latest less version is extends, if it's the same as SCSS then I've already implemented it for https://github.com/leafo/scssphp
Hi, is it possible to set variables from php with this new library ?
Because actualy i use this with leafo/lessphp
@mistergraphx AFAICT, it does not.
However, nothing would forbid us to support both libraries in Assetic (we just need to find a name for the filter based on less.php)
@stof I already know, that it is very confusing, but following the schema it should be less.php
:smile:
We cannot use dots in a class name, and I don't think it is allowed either in filter names
@KingCrunch The issues with Bootstrap 3 are just why I noticed that it is no longer supported. Other incompatibilites might arise. @mistergraphx Not as far as I know. @stof I agree, that might be the better solution. I'm willing to create a pull request for this. Altough finding a name for the class might a bit of a problem ;-)
The setting in the AsseticBundle could be called "less.php" - although that might lead to some confusion - so "oyejorgelessphp" might be a better choice. The filter class for the old LessPHP is simply called "LessphpFilter". The new one could be called "OyejorgeLessphpFilter"?
I was working on a filter to work with less.php myself when I noticed that less.php ships with lessc.inc.php. Using ZF2 + AssetManager (which depends on assetic) myself. I got bootstrap 3.1.* to compile by just replacing leafo/lessphp with oyejorge/less.php in my composer.json.
A separate filter wouldn't hurt... But the current one works due to less.php's "compat layer".
Replacing the dependency worked for me with Laravel 4 + Assetic as well. Thanks @grizzm0
+1 for replacing leafo/lessphp
Lessphp seems not to be actively developed anymore: https://github.com/leafo/lessphp/issues/503#issuecomment-31332372 This is annoying because current versions of Bootstrap are not supported any more.
I'd like to suggest replacing it with https://github.com/oyejorge/less.php/
I can write a patch, but I'd first like to know what others think about this.