liara.server

Module Contents

Classes

API

class liara.server.HttpServer(*, open_browser=True, port=8080)

Initialization

get_url()
serve(site: liara.site.Site, template_repository: liara.template.TemplateRepository, configuration, cache: liara.cache.Cache)

Serve the site with just-in-time processing.

This does not build the whole site up-front, but rather builds nodes on demand. Nodes requiring templates are rebuilt from scratch every time to ensure they’re up-to-date. Adding/removing nodes while serving will break the server, as it will not get notified and re-discover content.