class JLess extends lessc

Wrapper class for lessc

Methods

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

Constructor

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

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

Details

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

Constructor

Parameters

string $fname Filename to process
JLessFormatterJoomla $formatter Formatter object

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

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

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

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

Parameters

string $string LESS string to parse.
string $name The sourceName used for error messages.

Return Value

string $out The compiled css output.