Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.
/ li3_less Public archive

real-time less parser for the most rad php framework, lithium

License

Notifications You must be signed in to change notification settings

glaszig/li3_less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

li3_less

This is a real-time less parser for your li3 app.

Usage

Put your less stylesheets into a folder 'less' in your webroot. For example:

app/webroot/less/styles.css.less

In your layout view file, link to your stylesheet as usual:

echo $this->Html->style('styles.css');

From now on, magic will happen, as long as you keep your .css.less files in webroot/less. li3_less will now convert your styles.css.less file into styles.css and serve it. The .css file will be cached and served in webroot/less until you modify the corresponding less file.

Installation

Add a submodule to your li3 libraries:

git submodule add [email protected]:glaszig/li3_less.git libraries/li3_less

and activate it in you app (config/bootstrap/libraries.php), of course:

Libraries::add('li3_less');

Also, you should chmod the less folder, so generated .css files can be cached.

chmod 0777 app/webroot/less

Requirements

Todos

  • use Libraries:add() instead of require to load lessphp
  • move the less folder out of the webroot

Credits

Please report any bug at glaszig/li3_less/issues or at bruensicke/li3_less/issues.

About

real-time less parser for the most rad php framework, lithium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages