class Toc extends Paragraph (View source)

The table of contents block.

Methods

static string
classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

from Paragraph
static string
render(object $data, object $Automad)

Render a toc block.

Details

static protected string classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

Parameters

array $custom

Return Value

string the attribute string

static string render(object $data, object $Automad)

Render a toc block.

Parameters

object $data
object $Automad

Return Value

string the rendered HTML