Metadata-Version: 2.4
Name: btml
Version: 0.0.8
Summary: HTML but with curly brackets
Project-URL: Documentation, https://github.com/ImShyMike/btml#readme
Project-URL: Issues, https://github.com/ImShyMike/btml/issues
Project-URL: Source, https://github.com/ImShyMike/btml
Author-email: ShyMike <122023566+ImShyMike@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.115.13
Requires-Dist: uvicorn>=0.34.3
Description-Content-Type: text/markdown

# BTML

[![PyPI - Version](https://img.shields.io/pypi/v/btml.svg)](https://pypi.org/project/btml)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/btml.svg)](https://pypi.org/project/btml)

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):

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My First Web Page</title>
</head>
<body style="background-color: #dddddd">
  <!--  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):

```js
!html!
html[lang="en"] {
  head {
    meta[charset="UTF-8"].
    title "My First Web Page"
  }
  body[style="background-color: #dddddd"] {
    <# This is a comment #>
    h1 "Welcome to My Web Page"
    p "This is a simple BTML example with a button below."
    button[onclick="alert('Hello, world!')"] "Click Me"
  }
}
```

## Installation

BTML can be installed from PyPI using pip:

```bash
pip install btml
```

or using `uv`'s tools feature:

```bash
uv tool install btml
```

## Usage

After installing, run:

```bash
btml
```

or if that doesn't work:

```bash
pythom -m btml
```

If installed using `uv`:

```bash
uv tool run btml
```

## License

`btml` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
