getCss example

'template' => $template]
        );
    }

    /** * @throws Exception * * @return string[] */
    public function getTemplateCssFiles(Template $template)
    {
        $css = $this->util->getThemeByTemplate($template)->getCss();

        $directory = $this->pathResolver->getPublicDirectory($template);
        foreach ($css as &$file) {
            $file = $directory . DIRECTORY_SEPARATOR . $file;
        }

        return $css;
    }

    /** * @throws Exception * * @return string[] */

        $this->compiler->parseFile($file$url);
    }

    /** * Returns all compiled less content. * * @return string */
    public function get()
    {
        return $this->compiler->getCss();
    }

    /** * Resets all configurations. */
    public function reset()
    {
        $this->compiler->Reset();
    }
}
if ($outputStyle === OutputStyle::COMPRESSED || $outputStyle === OutputStyle::EXPANDED) {
            $this->compiler->setOutputStyle($outputStyle);
        }

        $importPaths = $config->getValue('importPaths');

        if ($importPaths !== null) {
            $this->compiler->setImportPaths($importPaths);
        }

        $css = $this->compiler->compileString($scss$path)->getCss();

        $this->reset(); // Reset compiler for multiple usage
        return $css;
    }
}
Home | Imprint | This part of the site doesn't use cookies.