betty.generate module¶
Provide the Generation API.
- class betty.generate.GenerateSiteEvent[source]¶
Bases:
ProjectEvent
Dispatched to generate (part of) a project’s site.
- __init__(job_context: GenerationContext)[source]¶
- property job_context: GenerationContext¶
The site generation job context.
- async betty.generate.create_file(path: Path) AsyncContextManager[AsyncTextIOWrapper] [source]¶
Create the file for a resource.
- async betty.generate.create_html_resource(path: Path) AsyncContextManager[AsyncTextIOWrapper] [source]¶
Create the file for an HTML resource.
- async betty.generate.create_json_resource(path: Path) AsyncContextManager[AsyncTextIOWrapper] [source]¶
Create the file for a JSON resource.