Compiler from less to css for Kohana
PHP
Pull request Compare This branch is 4 commits behind MrEmelianenko:3.3/master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
config
vendor
.gitmodules
README.md

README.md

How to use?

  • Set up a config file with you directories.
  • Place in less_dir your .less file (ex. style.less)
  • Call the function Less::compile('style'); in your code. This function was return the address of the file.

Example of using:

<style src="<?php Less::compile('style') ?>">

Note: if in the config only_development is true, .less file was compiled every time when function call. Else .less file was compiled, if file does not exist.