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

        if (!class_exists('Stylus\\Stylus'))
            throw new Compiler\Exception(
                "Failed to compile Stylus: "
                ."Please install the neemzy/stylus composer package"
            );

        $stylus = new \Stylus\Stylus;
        $css = $stylus->fromString($node->text())->toString();

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

        if (!class_exists('Stylus\\Stylus'))
            throw new Compiler\Exception(
                "Failed to compile Stylus: "
                ."Please install the neemzy/stylus composer package"
            );

        $stylus = new \Stylus\Stylus;
        $css = $stylus->fromString($node->text())->toString();

        return '<style>'.$newLine.$indent.$css.$newLine.$indent.'</style>';
    }
public static function filterStylus ( Node $ node , $ indent , $ newLine ) { if ( ! class_exists ( 'Stylus\\Stylus' ) ) throw new Compiler \ Exception ( "Failed to compile Stylus: " . "Please install the neemzy/stylus composer package" ) ; $ stylus = new \ Stylus \ Stylus ; $ css = $ stylus -> fromString ( $ node -> text ( ) ) -> toString ( ) ; return '<style>' . $ newLine . $ indent . $ css . $ newLine . $ indent . '</style>' ; }
Compiles the Stylus 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 Stylus-CSS-string
@throws Compiler\Exception when the Stylus package is not installed
Compiles the Stylus content to CSS