I think for a simple website, especially one with spartenweb or zero JS principles, a language with an architecture like PHP or ASP/ASPX fits well, where you just write HTML and server side code in the same file, and you navigate to that file from your URL to load it. For example, wwwroot/path/to/page.php on the server corresponds to https://example.com/path/to/page.php

Problem is, both PHP and ASP are pretty terrible languages, and ASP(X) has the additional dealbreaker of not being open source and only running on Windows servers, so I don’t really want to use any of them (I’ve tried all three), so are there any better web languages or web frameworks that does something similar?

  • Aarkon@feddit.de
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

    Depending on what you want to do and how much server side the server side code really needs to be, I’d suggest you take a look at:

    • Django: Full blown Python web application framework with database migrations and a lot more of bells and whistles
    • elm pages: Static page generator around the elm programming language, where you can bake a lot of things into a (after compilation) static html page but still have a very powerful and flexible language for dynamic content at your fingertips