HTMS: a HTML to Javascript compiler

in HiveDevs21 days ago

Yeah, you read the title right. A couple of years ago I had this CRAZY idea of building a HTML to Javascript compiler that lets you build apps using HTML tags.

Music Video Wtf GIF.gif

It's inspired a little by the early days of my development career writing Coldfusion. I built the initial version of it and it had the basics of code in there like conditionals and functions, but I abandoned the idea (even had tests and whatnot in there).

Recently I decided to revision the idea and round it out even more. I got into my typical ADHD hyperfocus state and just started expanding upon it like a madman.

You can do things like conditionals, toggles, functions, iterate arrays, work with events and a bunch of other things you'd do in typical Javascript. There is a folder of working demos you can also try too, including the obligatory todo app.

This is the end result: https://github.com/Vheissu/htms