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.4.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.4-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: btml-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 8ffb14f7efd2c8967dcb10c83518806abcc736970375fdcc347faa12d382ed17
MD5 9907fcfa9de0022a2bf4ba9adcc3d090
BLAKE2b-256 abc620caba0427706efb7c29ead94d131f785a3fd5e5ac78d59866f03828fa27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: btml-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d30d3e4dde74a80dbcdd352d959c9cbef793d9e3c6d8aa8741938429cc694a1
MD5 7a8f9fc11e3a3dd26122081849bcaae8
BLAKE2b-256 103dac9ad35deeea6601c9aa495842d1a75c4a7a90af40d24cd6938eac48c683

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