emmett-framework / emmett

The web framework for inventors
Other
1.03k stars 70 forks source link

Suggestion: add browser reloading when running "emmett develop", similar to django-browser-reload #495

Open hanerlend opened 2 months ago

hanerlend commented 2 months ago

Hi,

I am currently trying out Emmett, and i love how easy it is to get up and running with everything included.

Coming from Django + pytailwindcss + django-browser-reload, one thing I miss, though, is for the webpage to reload every time I hit save.

Would it be possible to add something similar to Emmett + Granian, as long as you run it in development mode?

https://github.com/adamchainz/django-browser-reload/

gi0baro commented 2 months ago

@hanerlend sounds definitely possible to do so; I'm wondering if something that should come with Emmett itself or something that should be packed into a dedicated extension.

hanerlend commented 2 months ago

From my perspective, having it within Emmett, and specifically the command "emmett dev" would make sense, as it would make the experience similar to the fluidity when working with Svelte etc.

Others may not share that perspective, of course 😊

gi0baro commented 2 months ago

@hanerlend it can be an extension and still be loaded with the dev command.