JLess

Extends \lessc

Wrapper class for lessc

deprecated
package

Joomla.Libraries

subpackage

Less

since

3.4

deprecated

4.0 without replacement

Methods

__construct

Constructor

__construct(string $fname = null, \JLessFormatterJoomla $formatter = null) 
since

3.4

Arguments

$fname

stringFilename to process

$formatter

\JLessFormatterJoomlaFormatter object

compile

Override compile to reset $this->allParsedFiles array to allow parsing multiple files/strings using same imports.

compile(string $string, string $name = null) : string

PR: https://github.com/leafo/lessphp/pull/607

For documentation on this please see /vendor/leafo/lessc.inc.php

Arguments

$string

stringLESS string to parse.

$name

stringThe sourceName used for error messages.

Response

string$out The compiled css output.