#Why text changes dist/index.html are not rendered in browser?
2 messages · Page 1 of 1 (latest)
Based on the information provided in the extracts, it's not entirely clear why the changes you're making to the dist/index.html file aren't being reflected in the browser. However, it's important to note that Astro is designed to optimize the loading of JavaScript and other resources, and it uses a build process to generate the final HTML files.
In the Astro 0.21 Preview: Vite + WASM = ⚡️ (https://astro.build/blog/astro-021-preview#hmr-meet-html) blog post, it's mentioned that Astro supports full Hot Module Replacement (HMR) for Astro components and pages. This means that when you change any .astro file in your codebase, the dev server updates the page without a full refresh and without losing any client state.
If you're manually editing the dist/index.html file after it's been built, it's possible that these changes aren't being picked up by Astro's dev server or the HMR process.
As for your use case with Jinja2 templating, it's not clear from the provided extracts how Astro would interact with this. Astro is designed to work with JavaScript frameworks and HTML/CSS, and it might not be compatible with server-side templating engines like Jinja2.