Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.17 KB

README.md

File metadata and controls

68 lines (45 loc) · 1.17 KB

Cake LESS

LESS helper for CakePHP

Requirements

  • CakePHP 5.x
  • Less.php

What's included?

  • LessHelper

Table of contents

Installation

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

Usage

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') ?>

Contributing

Patches & Features

Bugs & Feedback

https://github.com/brammo/cake-less/issues

License

Copyright (c) 2024, Roman Sidorkin and licensed under The MIT License.