LESS helper for CakePHP
- CakePHP 5.x
- Less.php
- LessHelper
cd
to the root of your app folder (where the composer.json
file is) and run the following Composer
command:
composer require brammo/cake-less
Then load the plugin using CakePHP's console:
bin/cake plugin load Less
Add helper in the AppView.php:
public function initialize(): void
{
$this->addHelper('Less.Less');
}
In the HTML head tag add:
<?= $this->Less->link('/path/to/styles.less') ?>
https://github.com/brammo/cake-less/issues
Copyright (c) 2024, Roman Sidorkin and licensed under The MIT License.