API Reference¶
This reference includes Astris public exports and HTML wrapper helpers.
astris¶
__version__ = '0.1.4'
module-attribute
¶
Astris
¶
add_head_link(href, rel='stylesheet', **attributes)
¶
Register a link tag to be injected in the document head.
add_head_script(src, **attributes)
¶
Register a script tag to be injected in the document head.
build(output_dir='dist', clean_urls=False)
¶
Generate static HTML files.
page(path)
¶
Decorator to register a page (route).
run_dev(port=8000, reload=True)
¶
Start the development server.
Component
¶
Bases: ABC
Base class for all UI elements (widgets).
Element
¶
Bases: Component
Represents a generic HTML tag. Works like a Flutter-style container that accepts children.