lib/Lime/App.php
public function block($name, $options=[]) {

        if (!isset($this->blocks[$name])) return null;

        $options = \array_merge([
            'print' => true
        ], $options);

        $block = \implode("\n", $this->blocks[$name]);

        if ($options['print']){
            echo $block;
        }

        return $block;
    }
public function block($name, $options=[]) {

        if (!isset($this->blocks[$name])) return null;

        $options = \array_merge([
            'print' => true
        ], $options);

        $block = \implode("\n", $this->blocks[$name]);

        if ($options['print']){
            echo $block;
        }

        return $block;
    }
public function block ( $ name , $ options = [ ] ) { if ( ! isset ( $ this -> blocks [ $ name ] ) ) return null ; $ options = \ array_merge ( [ 'print' => true ] , $ options ) ; $ block = \ implode ( "\n" , $ this -> blocks [ $ name ] ) ; if ( $ options [ 'print' ] ) { echo $ block ; } return $ block ; }
Get block content
@param  String $name
@param  array  $options
@return String
Get block content