private static function _register($render, $ns)
    {
        return function () use ($render, $ns) {
            $render = Str::clean($render);
            $render = implode('\\', array(
                $ns,
                Html::RENDER_DIR,
                ucfirst($render)
            ));

            return new $render();
        };
    }
private static function _register($render, $ns)
    {
        return function () use ($render, $ns) {
            $render = Str::clean($render);
            $render = implode('\\', array(
                $ns,
                Html::RENDER_DIR,
                ucfirst($render)
            ));

            return new $render();
        };
    }
private static function _register ( $ render , $ ns ) { return function ( ) use ( $ render , $ ns ) { $ render = Str :: clean ( $ render ) ; $ render = implode ( '\\' , array ( $ ns , Html :: RENDER_DIR , ucfirst ( $ render ) ) ) ; return new $ render ( ) ; } ; }
Pimple callback register render.

@param $render
@param string $ns
@return \Closure
Pimple callback register render .