Idea: Switch to another compiler for LESS fiels Less.php, http://lessphp.gpeasy.com/ #7012
Comments
Why should we do this? We are currently using the LESS compiler which is also used in Symfony. |
It compiles the current bootstrap version. |
What is bootstrap? |
I don't like the idea to switch to another compiler, only because it can compile the bootstrap css framework. If we decide to go this way, we will never end to switch the compiler, because no php compiler seems to be full less.js compatible. The only acceptable solutions I see is to make the less compiler plugable/switchable. |
Are the Assetic libraries available through the DI container in Symfony? |
You will obviously need the AsseticBundle for that Components are "hooked" into the DI using bundles in Symfony. Sorry: to answer your question: yes |
Sure? Do they really make the vendor libraries available as a service? Or do they just make Assetic available via DIC? |
I'm not sure what you mean. If a class is available in the DIC, it's called a service. So I read your questions as "is it true or true?" :D |
Ah, now I got your question. Checking... |
As far as I understand the docs (I do not have any experience, I think @tristanlins has), AsseticBundle does not provide a service, but it makes the class/factory configurable to handle any file with any compiler (which is what this ticket requests). |
Ok, then please wait for the Contao with Symfony version (expected in May, 2015) and adjust the Assetic bundle as mentioned by @aschempp. |
@leofeyer https://github.com/oyejorge/less.php got a wrapper class, so you can use same code, but the compiler is much better |
Starting with this issue on leafo Maybe its easy to switch to oyejorge in next maintenance release. |
We'll switch if they do: kriswallsmith/assetic#557 |
@leofeyer its not a requirement of assetic, so you can change it anytime, with the same filter |
TL_ROOT$ php composer/composer.phar remove leafo/lessphp
TL_ROOT$ cd composer
TL_ROOT/composer$ php composer.phar require oyejorge/less.php |
Contao 3.4 will be using |
Less.php, http://lessphp.gpeasy.com/
Github: https://github.com/oyejorge/less.php
+ Compiles Bootstrap LESS files
The text was updated successfully, but these errors were encountered: