Skip to main content

No project description provided

Project description

BTML

PyPI - Version PyPI - Python Version

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>
  <h1>Welcome to My Web Page</h1>
  <p>This is a simple HTML 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 {
    h1 "Welcome to My Web Page"
    p "This is a simple HTML example with a button below."
    button[onclick="alert('Hello, world!')"] "Click Me"
  }
}

Installation

BTML can be installed from PyPI using pip:

pip install btml

Usage

After installing, run:

btml

or, if that doesn't work:

pythom -m btml

License

btml is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

btml-0.0.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

btml-0.0.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file btml-0.0.3.tar.gz.

File metadata

  • Download URL: btml-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for btml-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5dcd8722a8f5ba37d78f04e23317a2f5f68dab0ff0e86b1a85d5727c51c0ce80
MD5 e4dc6c6e94a618e750571dabfd9b0db4
BLAKE2b-256 77acba5ec0acdc996f48108bfedf4a1f576d1733b0c1ab3ad5992a7c93701c18

See more details on using hashes here.

File details

Details for the file btml-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: btml-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for btml-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3ab4570668c5e689a31965106f42b2d2ee62e33cbbb22ae22a4f5ad1a82da39
MD5 f5a605766d1385373f2738319806c938
BLAKE2b-256 2c81b538c5e97261a3c26131ac1f80888fcae34eff332fe8a4c658208e72274d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page