Question:
It’s the title.
Example:
replit.com/@snakeyking
is a “sub-website” of replit.com
@SnakeyKing You can do app routes e.g. hello.nd.repl.co
and hello.nd.repl.co/welcome
using Flask
app routes. Using Python. If you need help dm me.
No not Flask I meant HTML, CSS, JS
Afaik you can’t, but then Flask uses HTML (and Python) to run, so…
I have done a few Flask
websites before.
So Replit IS NOT WRITTEN IN HTML AND JS!?!?
Is it written in:
- Flask
- Node.js
- TypeScript
- Another alternation of JS
It’s possible, I never said it wasn’t.
Since Flask uses HTML for the website, why not?
I never said it was impossible either
P.s. WHAT ABOUT TECHCELL OS!?!?
I wanna make a game called war.io
and there is a bunch of “sub-websites” in it:
war.io
war.io/leaderboard
war.io/<player-name>
It’s not a real one. I’m not about to start business.
Use Flask, like I said earlier. Super easy to use.
Soo… what are trying to say? Flask is not good?
Easy. Just create a file (e.g. otherpage.html) and use an <a>
tag to redirect users to that page. For example:
File structure:
your-repl
|_ index.html
|_ otherpage.html
Index.html:
<a href="./otherpage.html">Go to other page</a>
This will make a link leading to your-repl.username.repl.co/otherpage.html
If you want to remove the .html you have to use a backend server like PHP or Express.js.
It’s not a “sub-website,” it’s just another route. Anyway, this is possible in an HTML, CSS, JS Repl by creating a folder at the route you want, so like create a folder leaderboard
. then you can create an index.html
file inside of it. So you can go to war.io/leaderboard
to see the site
Or you could use Flask app routes
OP clearly doesn’t want that, although if he wants a leaderboard then he should have a backend. Why’d you gasp at my post, anyway?
(I never realised you could do that in HTML)