Thanks for reading this! I’m building a backend with Flask and want to be able to serve simple HTML pages. This requires me to have any CSS/JavaScript contained inside {{filename}}.HTML files, i.e. within <script></script> tags for JavaScript and <style></style> tags for CSS.
Currently, I am copying the contents of the respective CSS and JavaScript files into the HTML file, but this is cumbersome and I am prone to making mistakes, such as screwing up existing tags.
Is there are way to export the current project with CSS and JavaScript directly embedded into respective html files?
Thanks for the replies. The reason I want to have everything in a single file is because I want to serve the page using Flask and python, and it just exponentially simplifies things with me not having to load resources from more than one file.
Having never used Flask, I took a quick look at a tutorial, there is no benefit to embedding everything, in fact you just make more work for yourself as far as I can see.
Embedding everything into one file isn’t a feature of blocs or any app I have used. What ever you decide, good luck.