protected function jsBlock($less, array $options = [])
    {
        $return = '';
        $less   = (array)$less;

        // Append the user less files
        foreach ($less as $les) {
            $return .= $this->Html->meta('link', null, [
                'link' => $les,
                'rel'  => 'stylesheet/less'
            ]);
        }
        // Less.js configuration
        $return .= $this->Html->scriptBlock(sprintf('less = %s;', json_encode($options['js'], JSON_UNESCAPED_SLASHES)));
        // <script> tag for less.js file
        $return .= $this->Html->script($options['less']);

        return $return;
    }
protected function jsBlock($less, array $options = [])
    {
        $return = '';
        $less   = (array)$less;

        // Append the user less files
        foreach ($less as $les) {
            $return .= $this->Html->meta('link', null, [
                'link' => $les,
                'rel'  => 'stylesheet/less'
            ]);
        }
        // Less.js configuration
        $return .= $this->Html->scriptBlock(sprintf('less = %s;', json_encode($options['js'], JSON_UNESCAPED_SLASHES)));
        // <script> tag for less.js file
        $return .= $this->Html->script($options['less']);

        return $return;
    }
protected function jsBlock ( $ less , array $ options = [ ] ) { $ return = '' ; $ less = ( array ) $ less ; // Append the user less files foreach ( $ less as $ les ) { $ return .= $ this -> Html -> meta ( 'link' , null , [ 'link' => $ les , 'rel' => 'stylesheet/less' ] ) ; } // Less.js configuration $ return .= $ this -> Html -> scriptBlock ( sprintf ( 'less = %s;' , json_encode ( $ options [ 'js' ] , JSON_UNESCAPED_SLASHES ) ) ) ; // <script> tag for less.js file $ return .= $ this -> Html -> script ( $ options [ 'less' ] ) ; return $ return ; }
Returns the required script and link tags to get less.js working

@param  string $less    The input .less file to be loaded.
@param  array  $options An array of options to be passed to the `less` configuration var.
@return string          The link + script tags need to launch lesscss.
Returns the required script and link tags to get less . js working