MiniAsset\Filter\ScssPHP::input PHP Метод

input() публичный Метод

Runs scssc 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.
Результат string
    public function input($filename, $input)
    {
        if (substr($filename, strlen($this->_settings['ext']) * -1) !== $this->_settings['ext']) {
            return $input;
        }
        if (!class_exists('scssc')) {
            throw new \Exception(sprintf('Cannot not load filter class "%s".', 'scssc'));
        }
        $sc = new scssc();
        $sc->addImportPath(dirname($filename));
        return $sc->compile($input);
    }
ScssPHP