betty.content_builders.raspberry_mint_section module

The section content plugin.

final class betty.content_builders.raspberry_mint_section.Section

Bases: Template, DataManufacturable[SectionData]

The raspberry-mint-section content builder plugin.

Plugin ID

raspberry-mint-section

Class

Section

Configuration

SectionData

__init__(content: Iterable[ContentBuilder], *, heading: ResolvableLocalizable, name: MachineName | None = None, visually_hide_heading: bool = False, jinja: Environment)
async build_template(document: Document) TemplateBuild

Build template data.

Return a template name, a tuple of a template name and template date to render it. Return None to prevent anything from being rendered at all.

new = <betty.requirement._RequirableDecorator object>
classmethod new_data_cls() type[SectionData]

The object’s defined data class.

final class betty.content_builders.raspberry_mint_section.SectionData

Bases: Data, HasProps

Configuration for betty.content_builders.raspberry_mint_section.Section.

betty.content_builders.raspberry_mint_section:SectionData
__init__(content: ResolvablePluginManufacturerSequence[ContentBuilderDefinition, ContentBuilder], *, heading: ResolvableLocalizable, name: ResolvableMachineName | None = None, visually_hide_heading: bool = False)
content

The content within this section.

heading

The section heading.

name

The section’s machine name, used to generate permanent links.

visually_hide_heading

Visually hide the heading.

This keeps the heading for accessibility purposes, but does not display it visually.