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>
  <!--  This is a comment  -->
  <h1>Welcome to My Web Page</h1>
  <p>This is a simple BTML 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 {
    <# This is a comment #>
    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

or using uv's tools feature:

uv tool install btml

Usage

After installing, run:

btml

or if that doesn't work:

pythom -m btml

If installed using uv:

uv tool run 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.7.tar.gz (8.6 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.7-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for btml-0.0.7.tar.gz
Algorithm Hash digest
SHA256 441eb39fe869eed6fc385b0636b33382682aa4a994c7226e1b28464569b8c5d5
MD5 6bf8c8c1f8495ceb1cb52f1b47bc7d28
BLAKE2b-256 fd6627e87c6d035a83b8873b4b018d6ff1b7c512686726157b9e305b909aeaa6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for btml-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 903df47f1183ec990b3b2436194fc5b364241ad2202c98ea7f0d766d900f80cb
MD5 0e2979a957f60266fa44fe5f4dea3c26
BLAKE2b-256 a87f16f9b68926b378766b808f212397eba375f86261ca0c21798ee2bf8d22de

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