Module Tw_html.LivereloadSource

Live reloading during development.

Sourceval enabled : bool

enabled is true iff the SITE_LIVERELOAD environment variable is "true".

Sourceval endpoint : string

endpoint is the livereload WebSocket endpoint, read from SITE_LIVERELOAD_ENDPOINT (defaults to "ws://localhost:8080").

Sourceval script : t

script is the livereload <script> element if enabled is true, and Tw_html.empty otherwise.