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?

  • Echedenyan@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    3 years ago

    First, you can do that with PHP (yes, I know you refused it but I can recommend you my examples below) or Java (JSP) already (being this last also suggested by @overflow64@lemmy.ml).

    There are different ways to do it and you can check my PHP activities at https://notabug.org/EchedeyLR/DSW *

    ASP(X) has the additional dealbreaker of not being open source and only running on Windows servers

    You have Mono and there is a plugin for Apache Http Server allowing it but you can also run it through Mono specific server.

    However I don’t want to recommend it because I don’t see ethical because it is MS tech.

    Note: UT0 directory has nothing to do with PHP. It was requested by the teacher to train a bit and is not something I am specially proud of.