Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Less support

Latest

Choose a tag to compare

@aeberdinelli aeberdinelli released this 12 Apr 23:49
· 4 commits to master since this release
025f7d0

Now you can use Less instead of CSS if you want. An example:

use \Express\ExpressLess;

/**
 * Let's say you have a /less folder on your project
 * And you want every request that goes into /css to load the less file within that folder instead
 *
 * In this example /css/global.css will load the compiled version of /less/global.less
 * Same for /css/something.css -> /less/something.less
 */

$less = new ExpressLess($express, array(
	'source'	=> __DIR__.'/less',
	'dest'		=> '/css'
));

// Yes, it's that simple.