brammo/cake-less

Less Plugin for CakePHP

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:cakephp-plugin

v1.0.0 2024-12-22 10:43 UTC

This package is auto-updated.

Last update: 2025-05-22 11:46:22 UTC


README

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.