Metadata-Version: 2.3
Name: thtml-tstring
Version: 0.1.3
Summary: T-HTML renderer for PEP 750 template strings
Keywords: html,pep750,t-strings,template-strings,thtml
Author: Koudai Aono
Author-email: Koudai Aono <koxudaxi@gmail.com>
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: tstring-html-bindings>=0.1.3
Maintainer: Koudai Aono
Maintainer-email: Koudai Aono <koxudaxi@gmail.com>
Requires-Python: >=3.14
Project-URL: Homepage, https://github.com/koxudaxi/tstring-html
Project-URL: Repository, https://github.com/koxudaxi/tstring-html
Project-URL: Documentation, https://github.com/koxudaxi/tstring-html/blob/main/thtml-tstring/README.md
Project-URL: Changelog, https://github.com/koxudaxi/tstring-html/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/koxudaxi/tstring-html/issues
Description-Content-Type: text/markdown

# thtml-tstring

Higher-level T-HTML renderer for PEP 750 template strings.

```python
from thtml_tstring import component, thtml

@component
def Button(*, children: str, kind: str = "primary"):
    classes = [kind]
    return t'<button class="{classes}">{children}</button>'

label = "Save"
page = thtml(t"<Button kind='primary'>{label}</Button>")
assert page.render() == '<button class="primary">Save</button>'
```
