Releases: elboletaire/less-cake-plugin
Removed `fullBase` setting
The fullBase
setting was causing issues for people with sites working both with and without SSL.
Due to the fullBase
setting, and with cache enabled, the cached files were generated with incorrect URLs.
Coding changes
Internal coding changes.
This is a major upgrade because now compile
and jsBlock
methods are protected.
You should not be using those methods, use less
instead. You can use all the capabilities from compile
and jsBlock
methods using the less
method.
Better sourceMap logic
v1.6.4 Better way to handle with default sourceMaps
Enabled sourceMap by default when debug enabled
Enable sourceMap by default with debug enabled closes #11
Updated parsers
Both less.js and less.php parser versions have been updated.
Minor changes
Minor composer changes
New fetch method + more tests
Now you can fetch your less files sent to the css block and parse them directly:
// in your views..
echo $this->Html->css('Bootstrap.less/bootstrap.less?', ['rel' => 'stylesheet/less', 'block' => true]);
// [...]
echo $this->Html->css('less/styles.less?', ['rel' => 'stylesheet/less', 'block' => true]);
// And then, in your template:
echo $this->Less->fetch(); // will compile any less file found on the css view block
echo $this->fetch('css'); // will print remaining css files
You were currently able to use plugin notation to load your less files. In this version you're now also able to load files using "slashes notation" (/plugin/less/file.less
).
Added tests + bugfixes
Tests have been added to this release. Thanks to them I've found some bugs that I've successfuly bugfixed.
If you would like to test the plugin cd into the plugin directory, run composer install
.
Then run phpunit into that folder after composer has finished installing. If you don't have phpunit you can easily add it with composer require phpunit/phpunit
.
And then run php bin/phpunit
inside the plugin directory.
First release
Directly extracted from the twitter bootstrap cakephp plugin here's the first release of this plugin that will help you parsing any less file from your CakePHP applications.