News for hackers. Stuff that matters.
Re:Nazca – New GUI for the Web by Eikon on Wednesday November 03, 2021 @09:15AM (#29094131)
From the example:

    .html {
        .head {
            .title {
                text: A simple Hello World example;
            };
        };
       .body {
            .div {
                text: Hello world;
            };
        };
    };
Seems pretty awful to me...
Re:Nazca – New GUI for the Web by diggan on Wednesday November 03, 2021 @10:05AM (#29094723)
In Clojure (hiccup), the idea is similar (lists for HTML) but with a nicer syntax. Comparing it, how does this seem as an alternative?

    [:html
     [:head [:title "A simple Hello world example"]]
     [:body [:div "Hello World"]]]
It's simply lists inside lists, with keywords (:html) being converted to HTML elements, and second (and the rest) item/s being children of whatever came as the first keyword in the list.
Re:Nazca – New GUI for the Web by hoosieree on Wednesday November 03, 2021 @10:22AM (#29094999)
Hard to compete with any lisp at generating html - html is basically just a verbose lisp.
Re:Nazca – New GUI for the Web by mmargerum on Wednesday November 03, 2021 @10:38AM (#29095273)
I was sitting here thinking why doesn't the author just use reagent? so much nicer and you aren't using yet another DSL
Re:Nazca – New GUI for the Web by FractalHQ on Wednesday November 03, 2021 @11:10PM (#29103312)
While I think this is a step in the right direction to address the ugly and verbose nature of HTML, Pug in a .svelte file is by far the nicest way to write html I’ve experienced.