betty.extension.demo package¶
Module contents¶
Provide demonstration site functionality.
- class betty.extension.demo.Demo[source]¶
-
Provide demonstration site functionality.
- Parameters:
project (
betty.project.Project
)args (
typing.Any
)kwargs (
typing.Any
)
- classmethod depends_on() set[type[betty.project.extension.Extension]] [source]¶
The extensions this one depends on, and comes after.
- Return type:
- class betty.extension.demo.DemoServer[source]¶
Bases:
Server
Serve the Betty demonstration site.
- Parameters:
app (
betty.app.App
)
- __init__(app: betty.app.App)[source]¶
- Parameters:
app (
betty.app.App
)
- classmethod label() betty.locale.localizable.Localizable [source]¶
Get the server’s human-readable label.
- Return type:
- betty.extension.demo.demo_project(app: betty.app.App) collections.abc.AsyncIterator[betty.project.Project] [source]¶
Create a new demonstration project.
- Parameters:
app (
betty.app.App
)- Return type: