Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Releases: elboletaire/less-cake-plugin

Removed `fullBase` setting

06 May 12:01
Compare
Choose a tag to compare

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

28 Apr 17:11
Compare
Choose a tag to compare

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

22 Nov 00:20
Compare
Choose a tag to compare
v1.6.4

Better way to handle with default sourceMaps

Enabled sourceMap by default when debug enabled

21 Nov 23:54
Compare
Choose a tag to compare
Enable sourceMap by default with debug enabled

closes #11

Updated parsers

21 Nov 23:47
Compare
Choose a tag to compare

Both less.js and less.php parser versions have been updated.

Minor changes

23 Mar 22:31
Compare
Choose a tag to compare

Minor composer changes

New fetch method + more tests

01 Mar 22:49
Compare
Choose a tag to compare

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

21 Feb 12:17
Compare
Choose a tag to compare

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

12 Jan 00:26
Compare
Choose a tag to compare

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.