Auto-reload of Template
See original GitHub issueThis is a development-time convenience feature. When the server is run with productionMode = false
, the framework listens for changes to used template files. When a change is discovered, the template is reparsed and the updated template tree is pushed to the browser for all active sessions, where it is immediately used to re-reender that part of the DOM.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:17 (15 by maintainers)
Top Results From Across the Web
Reload Flask app when template file changes - Stack Overflow
How to autoreload Jinja2 templates using nginx, uswgi and flask? ... Is it possible to view live changes in html/css from page served...
Read more >Auto reload (twig) templates? · Issue #1029 · perwendel/spark
Hello, I'm using Twig for templating. Is it possible to auto-reload template changes? I see there's an option for static files, ...
Read more >Template App Auto-Reload | Apple Developer Forums
I am going toward a solution that uses the storage api to put a key to identify the whole server side code version...
Read more >32744 (Template changes cause dev server to reload)
Django 3.2 has changed the autoreload behavior of the dev server, and it now reloads on template file changes. Reverting to 3.1 fixes...
Read more >Flask, html in /templates/ not reloading? : Forums
i have a python code, that create or re-write the content of an html page. This page is saved in folder /template/ inside...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m bumping this now since with ES modules in V14 the DX related to this pretty much collapsed.
In Bower mode, JRebel was able to push changed templates immediately and automatically; e.g.
META-INF/resources/frontend/my-template.html
Then running Project B with JRebel, a change in Project A’s
my-template.html
was immediately available in the browser.With ES modules, this no longer applies (at least I’m not able to make it work); e.g.
META-INF/resources/frontend/my-template.js
Then running Project B with JRebel, a change in Project A’s
my-template.js
isn’t available in the browser and I need to restart the application… if I’m lucky, as 50% of the times I also need torm -rf node_modules target
in Project B root to avoid client errors such as:I understand this is pretty old, but I hope it will be addressed ASAP now that V14 is released and since Vaadin’s suggesting to migrate to ES module I expect many are already facing this.
Closing this ticket, as live reloading will now (in V17) trigger when any frontend resource is modified (and the main ticket covering monitoring submodule resources is #6347).