httk.serve.web.publishing.static

Publish rendered pages and only the widget assets they use.

Attributes

Functions

publish_site(*, engine, outdir)

Publish a site engine into a static output directory.

Module Contents

httk.serve.web.publishing.static.CONTENT_EXTENSIONS: set[str][source]
httk.serve.web.publishing.static.publish_site(*, engine, outdir)[source]

Publish a site engine into a static output directory.

Parameters:
Returns:

Report of written files and rendering warnings.

Raises:

ValueError – If a used widget asset collides with site static output.

Return type:

httk.serve.web.model.page.PublishReport