Filter.php
public static function filterLess(Node $node, $indent, $newLine)
    {

        if (!class_exists('lessc'))
            throw new Compiler\Exception(
                "Failed to compile LESS: "
                ."Please install the leafo/lessphp composer package"
            );

        $less = new \lessc;
        $css = $less->compile($node->text());

        return '<style>'.$newLine.$indent.$css.$newLine.$indent.'</style>';
    }
public static function filterLess(Node $node, $indent, $newLine)
    {

        if (!class_exists('lessc'))
            throw new Compiler\Exception(
                "Failed to compile LESS: "
                ."Please install the leafo/lessphp composer package"
            );

        $less = new \lessc;
        $css = $less->compile($node->text());

        return '<style>'.$newLine.$indent.$css.$newLine.$indent.'</style>';
    }
public static function filterLess ( Node $ node , $ indent , $ newLine ) { if ( ! class_exists ( 'lessc' ) ) throw new Compiler \ Exception ( "Failed to compile LESS: " . "Please install the leafo/lessphp composer package" ) ; $ less = new \ lessc ; $ css = $ less -> compile ( $ node -> text ( ) ) ; return '<style>' . $ newLine . $ indent . $ css . $ newLine . $ indent . '</style>' ; }
Compiles the LESS content to CSS

@param Node   $node    the node to be compiled
@param string $indent  the indentation to use on each child
@param string $newLine the new-line to append after each line

@return string the wrapped Less-CSS-string
@throws Compiler\Exception when the LESS package is not installed
Compiles the LESS content to CSS