role Documentable::DocPage

Pod to be rendered and its url

Defined as

role Documentable::DocPage

This role must be implemented by all classes that generate an HTML page.

method render

Defined as

method render(| --> Hash{ ... }

It's an abstract method. It needs to return a Hash object following this format:

%(
    document => pod to be rendered as HTML,
    url      => URL assigned to this document
)

Returning the pod is necessary because we need to wrap it in a common HTML template (see Documentable::To::HTML::Wrapper).

Type Graph

Type relations for Documentable::DocPage
perl6-type-graph Documentable::DocPage Documentable::DocPage Documentable::DocPage::Primary::Type Documentable::DocPage::Primary::Type Documentable::DocPage::Primary::Type->Documentable::DocPage Documentable::DocPage::SubIndex::Routine Documentable::DocPage::SubIndex::Routine Documentable::DocPage::SubIndex::Routine->Documentable::DocPage Documentable::DocPage::Index::Programs Documentable::DocPage::Index::Programs Documentable::DocPage::Index::Programs->Documentable::DocPage Documentable::DocPage::Primary::Programs Documentable::DocPage::Primary::Programs Documentable::DocPage::Primary::Programs->Documentable::DocPage Documentable::DocPage::Primary::Language Documentable::DocPage::Primary::Language Documentable::DocPage::Primary::Language->Documentable::DocPage Documentable::DocPage::Index::Type Documentable::DocPage::Index::Type Documentable::DocPage::Index::Type->Documentable::DocPage Documentable::DocPage::Secondary Documentable::DocPage::Secondary Documentable::DocPage::Secondary->Documentable::DocPage Documentable::DocPage::SubIndex::Type Documentable::DocPage::SubIndex::Type Documentable::DocPage::SubIndex::Type->Documentable::DocPage Documentable::DocPage::Index::Routine Documentable::DocPage::Index::Routine Documentable::DocPage::Index::Routine->Documentable::DocPage Documentable::DocPage::Index::Language Documentable::DocPage::Index::Language Documentable::DocPage::Index::Language->Documentable::DocPage

Expand above chart