HTML but with curly brackets
Ever felt like plain HTML is lacking some curly brackets? Worry no more, BTML fixes that for you!
Plain HTML (bad):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>My First Web Page</title>
</head>
<body style="background-color: #dddddd">
<!-- This is a comment -->
<h1>Welcome to My Web Page</h1>
<p>This is a simple BTML example with a button below.</p>
<button onclick="alert('Hello, world!')">Click Me</button>
</body>
</html>BTML (much better):
!html!
html[lang="en"] {
head {
meta[charset="UTF-8"].
title "My First Web Page"
}
body[style="background-color: #dddddd"] {
<# This is a comment #>
h1 "Welcome to My Web Page"
p "This is a simple BTML example with a button below."
button[onclick="alert('Hello, world!')"] "Click Me"
}
}BTML can be installed from PyPI using pip:
pip install btmlor using uv's tools feature:
uv tool install btmlAfter installing, run:
btmlor if that doesn't work:
pythom -m btmlIf installed using uv:
uv tool run btmlbtml is distributed under the terms of the MIT license.