BTML
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"
}
}
Installation
BTML can be installed from PyPI using pip:
pip install btml
or using uv's tools feature:
uv tool install btml
Usage
After installing, run:
btml
or if that doesn't work:
pythom -m btml
If installed using uv:
uv tool run btml
License
btml is distributed under the terms of the MIT license.
Metadata
Release files for btml 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| btml-0.1.2.tar.gz | 22.1 kB | Without provenance | Details for btml-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| btml-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for btml-0.1.2-py3-none-any.whl |
Total release size: 32.7 kB
Release files / btml-0.1.2.tar.gz
| Download URL | btml-0.1.2.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e619e2ff3308621f920ea3a9b30c5201193bddc7f8fc7126d00047a5880c3244
|
|
BLAKE2b-256 checksum How to use checksums |
40dcad3beee18280f2993277d7acac6d71e8462d5938307060369d0fea209ba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Release files / btml-0.1.2-py3-none-any.whl
| Download URL | btml-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8ed0003b4a7be297f8e0e9d39626470798617883c1b607f9037a416f6356042
|
|
BLAKE2b-256 checksum How to use checksums |
8417127f28cb021e1f09fc26d7e408e140e9c87a7670cb66de3eb3194cab315e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Security for btml 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.