I've just built GlassScript - a structured markup language. It's a balance between Markdown and HTML, with just enough syntax to give you control, but no boilerplate.
It's great for writing documentation, or maybe a article.
It's written in Python, and can be run through Python PIP or HTML Pyodide. I used regex to parse it, and that saved a lot of time.
Commands look like this:
(!command)(main_value)
(?variable)(value)
(.function)(html)
As you can see, it looks simple enough. You can also use carats to escape the brackets.
In the HTML Pyodide one, the plug and play method, I included all the functions/preloads for ease of use.
Check it out: https://www.splot.dev/glass-script/
If you need the code, check out my repo, and maybe contribute: https://codeberg.org/splot-dev/glass-script
Thanks for reading, and enjoy your day!
Top comments (0)