Ask coding questions

← Back to all posts
HTML repl's run code?
BruceLi2

Hi, I wanted to make an HTML repl that runs a certain console command before actually starting the HTML page. When I add a .replit file, it still doesn't work. Does anyone have any idea how to fix this?

Answered by AmoghTheCool [earned 5 cycles]
View Answer
Voters
BruceLi2
Comments
hotnewtop
AmoghTheCool

@BruceLi2, the .replit file is auto-generated an immutable in HTML, CSS, JS repls -- even if you retype it. What you may want to do is make a Flask server and then edit .replit to be like:

Go here for flask tutorials.

BruceLi2

@AmoghTheCool, ok, thanks!

AmoghTheCool

@BruceLi2 you're welcome!