ilusm.dev

hot

hot module reloading for development, file watching, live updates.

Load with: use hot

Quick example

use hot

result = hotne("./example", 10)
prn(result)

Functions

Hot reloader

hotne(watch_paths, options)

Creates a new instance. Takes watch_paths, options.

hoton(hot, file_pattern, callback)

Performs the operation. Takes hot, file_pattern, callback.

hotst(hot)

Sets a value or starts a process. Takes hot.

hotst(hot)

Sets a value or starts a process. Takes hot.

hotsc(hot)

Performs the operation. Takes hot.

hotfi(hot)

Performs the operation. Takes hot.

hotma(hot, path)

Performs the operation. Takes hot, path.

hotch(hot)

Checks a condition. Takes hot.

hotdi(hot, change)

Disconnects. Takes hot, change.

Module reloading

hotre(module_path)

Performs the operation. Takes module_path.

hotre(fn_path, new_source)

Performs the operation. Takes fn_path, new_source.

Server hot reload

hotse(server, options)

Sets a value. Takes server, options.

hotse(hot_server, path, handler_file)

Sets a value. Takes hot_server, path, handler_file.

hotre(hot_server, path)

Performs the operation. Takes hot_server, path.

Template hot reload

hotse(hot_server, view_name, template_file)

Sets a value. Takes hot_server, view_name, template_file.

Live browser reload (for dev)

hotli(port)

Performs the operation. Takes port.

hotre(ws_port)

Performs the operation. Takes ws_port.

State preservation

hotpr(module_name, state_vars)

Processes or prints. Takes module_name, state_vars.

hotre(module_name, state)

Performs the operation. Takes module_name, state.

Development server

hotde(root_dir, port)

Decodes. Takes root_dir, port.

Notes

  • Hot reload - watch files, reload modules on change.