Kitware / trame-cookiecutter

Cookie Cutter template for creating trame application/module
16 stars 8 forks source link

Add dev setup for basic cookiecutter #2

Closed psavery closed 2 years ago

psavery commented 2 years ago

Now, if the user runs their trame app with the --dev argument, the reload button will appear at the bottom of the web browser. Pressing it will cause the UI file to be reloaded and updated, which allows for the UI to be developed and updated without closing the program.

This additionally reloads the controller file, which, after reload, will also call the on_reload() function, which is given a function that can be used to reload other modules.

Depends on: kitware/trame#34