pg.views.HtmlConvertible

Accessible via pg.views.HtmlConvertible.

class HtmlConvertible[source]

Bases: object

Base class for HTML convertible objects.

Methods:

to_html(**kwargs)

Returns the HTML representation of the object.

to_html_str(*[, content_only])

Returns the HTML str of the object.

to_html(**kwargs)[source]

Returns the HTML representation of the object.

Return type:

pg.Html

to_html_str(*, content_only=False, **kwargs)[source]

Returns the HTML str of the object.

Return type:

str