method render

Documentation for method render assembled from the following types:

role Perl6::Documentable::DocPage

From Perl6::Documentable::DocPage

(Perl6::Documentable::DocPage) method render

Defined as

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

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

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

Returns the pod is necessary because we need to wrap it in a common HTML format (using Perl6::Documentable::To::HTML::Wrapper).

class Perl6::Documentable::To::HTML::Wrapper

From Perl6::Documentable::To::HTML::Wrapper

(Perl6::Documentable::To::HTML::Wrapper) method render

Defined as

method render($pod$selected = '':$pod-path?)

Render the $pod passed and wraps it. $selected is an element of Kind. It will appear as selected. $pod-path is used to complete the 'edit button' presents in pages coming from a Perl6::Documentable::Primary object.