ONTechNITS / RapidHTML

GNU General Public License v3.0
10 stars 0 forks source link

Live Reloading #4

Closed ThomasJRyan closed 2 months ago

ThomasJRyan commented 3 months ago

Having to restart the app each time you make a change sucks. Live reloading would be a great feature to have.

If I were to suggest some things, I'd first suggest leveraging uvicorn's built-in --reload parameter which will automatically reload your app when something changes.

You can inject the javascript into the page's head with the html_head argument in QuickHTML

app = QuickHTML(html_head=Script(...))

Though we'll probably want another argument that can do that for us instead

Tasks: