Glot.Watcher (Glot v0.1.1)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor.

Registers a module to be notified when files in the given base path change.

Starts the file watcher for live reloading. Only starts in development environment.

Unregisters a module from file change notifications.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

register_module(module, base_path)

Registers a module to be notified when files in the given base path change.

start_link(opts \\ [])

Starts the file watcher for live reloading. Only starts in development environment.

unregister_module(module)

Unregisters a module from file change notifications.