Pipit: pipit_template()

Renders a template at run time similar to perch_template().

pipit_template() allows you to set your own template name space and to paginate your items.

pipit_template($template, $data, $opts, $return);

Parameters:

Type Description
String Template path
Array Data array
Array Options array, see below
Boolean Set to true to have the templated html returned instead of echoed.

Options array:

Option Description
namespace Template name space. Default content
count The number of items to display.
paginate Boolean. Set to true to use pagination
page-links Create numbered page links for pagination.
pipit_template('render/list.html', $data, [
    'count' => 6,
    'paginate' => true,
]);
link