Module Tw_html.Livereload

Livereload module

Development-time live reloading support.

val enabled : bool

enabled is true if SITE_LIVERELOAD environment variable is "true".

val endpoint : string

endpoint is the WebSocket endpoint for livereload. Defaults to "ws://localhost:8080" or SITE_LIVERELOAD_ENDPOINT.

val script : t

script is the JavaScript code for livereload functionality. Only included when enabled is true.