Own programming language for SSG

I wrote my own programming language that allows for much more efficient and time-saving writing of static webistes. It is written in rust for maximum speed Atra Because that's what we're talking about now. It's a programming language that compiles to html, but allows you to use components, has a C-like syntax, It has built functions like %loop(3){} Simple page in Atra(more fomplex example https://github.com/funcieqDEV/Atra/tree/main/examples/atra_showcase) text(""); html(lang="en"){ head(){ meta(charset = "utf-8); title(){ text("Document"); } } body(){ p(){ text("Hello world"); } } } the component system allows us to use code written once many times, so let's add a component to the previous code $describe(What,Description){ h3(){text("{What}";)} p(){text("{Desription}");} } text(""); html(lang="en"){ head(){ meta(charset = "utf-8); title(){ text("Document"); } } body(){ p(){ text("Hello world"); } %each("apple", "Orange", "Tomato" , "Tangerine"){ $describe(item, "Small round and to the mouth"); } } } As you can see, each component must start with $

Jun 8, 2025 - 01:30
 0
Own programming language for SSG

I wrote my own programming language that allows for much more efficient and time-saving writing of static webistes. It is written in rust for maximum speed

Atra Because that's what we're talking about now. It's a programming language that compiles to html, but allows you to use components, has a C-like syntax, It has built functions like %loop(3){}

Simple page in Atra(more fomplex example https://github.com/funcieqDEV/Atra/tree/main/examples/atra_showcase)

text("");
html(lang="en"){
    head(){
        meta(charset = "utf-8);
        title(){
            text("Document");
        }
    }
    body(){
        p(){
            text("Hello world");
        }
    }
}

the component system allows us to use code written once many times, so let's add a component to the previous code

$describe(What,Description){
    h3(){text("{What}";)}
    p(){text("{Desription}");}
}

text("");
html(lang="en"){
    head(){
        meta(charset = "utf-8);
        title(){
            text("Document");
        }
    }
    body(){
        p(){
            text("Hello world");
        }

        %each("apple", "Orange", "Tomato" , "Tangerine"){
           $describe(item, "Small round and to the mouth");
        }
    }
}

As you can see, each component must start with $