kernel/lib/Less.php
public static function toCss(string $sFile)
	{
	    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
	        
	        $sCmd = self::LESS_WINDOWS." ".$sFile." --watch";
            $sContent = shell_exec($sCmd);
	    }
	    else {
	       
	        $sCmd = "lessc ".$sFile." --no-color 2>&1";
            $sContent = shell_exec($sCmd);
	    }
	    
        header("content-type:text/css");
        echo $sContent;
	}
public static function toCss(string $sFile)
	{
	    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
	        
	        $sCmd = self::LESS_WINDOWS." ".$sFile." --watch";
            $sContent = shell_exec($sCmd);
	    }
	    else {
	       
	        $sCmd = "lessc ".$sFile." --no-color 2>&1";
            $sContent = shell_exec($sCmd);
	    }
	    
        header("content-type:text/css");
        echo $sContent;
	}
public static function toCss ( string $ sFile ) { if ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' ) { $ sCmd = self :: LESS_WINDOWS . " " . $ sFile . " --watch" ; $ sContent = shell_exec ( $ sCmd ) ; } else { $ sCmd = "lessc " . $ sFile . " --no-color 2>&1" ; $ sContent = shell_exec ( $ sCmd ) ; } header ( "content-type:text/css" ) ; echo $ sContent ; }
translate the content

@access public
@param  mixed $sFile content to translate
@return void
translate the content