public function pagination($args = [])
    {
        $pagination = Container::resolve(
            Pagination::class,
            [
                'args' => $args,
            ]
        );

        if (isset($args['echo']) && $args['echo'] !== true) {
            return $pagination->get();
        }
        
        return $pagination->render();
    }
public function pagination($args = [])
    {
        $pagination = Container::resolve(
            Pagination::class,
            [
                'args' => $args,
            ]
        );

        if (isset($args['echo']) && $args['echo'] !== true) {
            return $pagination->get();
        }
        
        return $pagination->render();
    }
public function pagination ( $ args = [ ] ) { $ pagination = Container :: resolve ( Pagination :: class , [ 'args' => $ args , ] ) ; if ( isset ( $ args [ 'echo' ] ) && $ args [ 'echo' ] !== true ) { return $ pagination -> get ( ) ; } return $ pagination -> render ( ) ; }
Wrapper for outputting Pagination.

@since 1.0.0
@see   \Snap\Templating\Pagination

@param  array $args Args to pass to the Pagination instance.
@return bool|string If $args['echo'] then return true/false if the render is successful,
else return the pagination HTML.
Wrapper for outputting Pagination .