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

Uploaded Python 3

File details

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

File metadata

  • Download URL: btml-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 a4ce087a79a65ed377ba8fbdf62ef5b75ffdec0d1cf51f9a19cfd03a6469b87a
MD5 dd5fa94c8f44890a63536f89aabb372d
BLAKE2b-256 d742e71b806b4098d139cc3f2ea3bc3ae94b600ce58cbd6cd19a6cc3ac81d943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: btml-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 15ff845f6870394b73a15ad9f29bfc9c65ed034481bad6eb49e8d06e01833a2b
MD5 1927d2526f6fa2e69fc0fc19b12dce31
BLAKE2b-256 d1e315de2c37cc5b58e67348e5adfad0ac2bb6bdde559ab51c9ae59c6516c74f

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