src/Core/View/AbstractView.php
public function pipe($name, $handler = null)
    {
        if (is_callable($name)) {
            $handler = $name;
            $name    = null;
        }

        return $handler($this->getRepository($name), $this);
    }
public function pipe($name, $handler = null)
    {
        if (is_callable($name)) {
            $handler = $name;
            $name    = null;
        }

        return $handler($this->getRepository($name), $this);
    }
public function pipe ( $ name , $ handler = null ) { if ( is_callable ( $ name ) ) { $ handler = $ name ; $ name = null ; } return $ handler ( $ this -> getRepository ( $ name ) , $ this ) ; }
Pipe a callback to model and view then return value.

@param string|callable $name    The name alias of model, keep NULL as default model.
Or just send a callable here as handler.
@param callable        $handler The callback handler.

@return  mixed
Pipe a callback to model and view then return value .