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

Uploaded Python 3

File details

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

File metadata

  • Download URL: btml-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 3594d8b6ff1e5957b14ee2208ad46fdd23011c7afdaa4b62729b76b8cef83d01
MD5 5acd1e0e812280ad176cb73ef7730c88
BLAKE2b-256 574af9bbe4ee73f2ce1d45da471c9d85275ad758c820a4eb147a2c33d9c22f83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: btml-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ff7c3150caee9de77dac6c3b2dbdf887483d09200d961863356364f3a22d94f
MD5 1d5735cc635a6ac9849838802cfdb688
BLAKE2b-256 9e3e2126ff602ff1ab6289f9304e8c14ef78317bfc482e131e19a5e28017d4eb

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