Skip to main content

No project description provided

Project description

BTML

PyPI - Version PyPI - Python Version

HTML but with braces :D


Ever felt like plain HTML is lacking some braces? 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.2.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.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: btml-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 cc62de0cc9b8fe9cc4c16ee0e07afa621ca39920dbc74ac084a512d1a8f7283e
MD5 2a780375732508a07f174d4e04374b57
BLAKE2b-256 733ffd401a65635ee6a2a6e54c7a94ca10f2918801a6d1adb9f6df525ee047fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: btml-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7689d42b05e0dfb96c261547c3487864de38583aec642d45110a6ea98df04fda
MD5 614d02e84ed056119084de5f8e20576e
BLAKE2b-256 998b0c89e1ecedd5f9f0a871b65121543bf15de19e49805bfce028908d2a22fa

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