MiniAsset\Filter\LessPHP::input PHP Method

input() public method

Runs lessc against any files that match the configured extension.
public input ( string $filename, string $input ) : string
$filename string The name of the input file.
$input string The content of the file.
return string
    public function input($filename, $input)
    {
        if (substr($filename, strlen($this->_settings['ext']) * -1) !== $this->_settings['ext']) {
            return $input;
        }
        if (!class_exists('lessc')) {
            throw new \Exception('Cannot not load "lessc" class. Make sure it is installed.');
        }
        $lc = new lessc($filename);
        return $lc->parse();
    }
LessPHP