Skip to content

brammo/cake-less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Less helper for CakePHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages