DEV Community

loading...

What is my MEML project?

kailyons profile image KaiLikesLinux ・1 min read

When developing websites, the most prominent cause of issues is the tags. If you are forced by a corporation to use a code editor with no autofill tools, it can be a pain. Even then, we all have pains when trying to use HTML to develop. Sure, some might like frameworks such as Pug, but others do not. Some people want a web development language that gives them control, readability, fervor, without writing a billion lines of HTML. I took it upon myself to make this happen, so I am now building web LISP. I call it MEML, Minimal, and Efficient Markup Language.

Not much information is out at this time, but imagine LISP for websites. Some design work still needs to be done for the language. MEML utilizes JavaScript and Sass to build a website. JavaScript is for the translator to work, and Sass to add the functionality in extra tags.

Here is an example index.meml file:

// Yeah this is basically LISP HTML
(head
    (charset "UTF-8")
    (viewport 1)
    (title "This is MEML"))
(body
    (p "Welcome to MEML"))

Here is if that same index.meml file was translated to index.html:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>This is MEML</title>
    </head>
    <body>
        <p>Welcome to MEML</p>
    </body>
</html>

The difference is staggering.

Discussion (11)

pic
Editor guide
Collapse
ben profile image
Collapse
citizen428 profile image
Michael Kohl

This reminds me a bit of html-template for Racket. Example from the website:

(define (write-essay my-title)
  (html-template
    (html (head (title (% my-title)))
          (body (h1 (% my-title))
                (p "Kittens claw."
                   (br)
                   "Puppies pee.")))))

(write-essay "All About Kittens & Puppies")
Collapse
yujiri8 profile image
Ryan Westlund

Looks pretty cool!

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

I definitely think that closing brackets are a solution to verbose XML closing tags.

Pug and indentation are not the only way. Complaining at Pug for using indentations is a wrong complaint and looking at a wrong problem.

I know that XML is not an S-expression, though. But I definitely dislike this phrase.

Collapse
kailyons profile image
KaiLikesLinux Author

I hate markdown, except for places like this where I use it to write documentation or about code. While Markdown is usable, I don't see it as a replacement to HTML nor a fix to HTML. Markdown is trying to be a different kind of markup language.

Collapse
ianfabs profile image
Ian Fabs

I never really had a problem with the verbosity of HTML, but this looks so promising!!! Such a great idea!!!

Collapse
aminnairi profile image
Collapse
jr profile image
kailyons profile image