https://github.com/jkmnt/htmf
HTML in Python f-strings
https://github.com/jkmnt/htmf
f-strings html python
Last synced: 9 months ago
JSON representation
HTML in Python f-strings
- Host: GitHub
- URL: https://github.com/jkmnt/htmf
- Owner: jkmnt
- License: mit
- Created: 2024-06-29T01:15:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T17:00:43.000Z (about 1 year ago)
- Last Synced: 2025-04-03T07:47:36.581Z (9 months ago)
- Topics: f-strings, html, python
- Language: Python
- Homepage: https://jkmnt.github.io/htmf
- Size: 1.73 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# HTML in Python f-strings
## Introduction
htmf is a collection of utilities for writing HTML in Python f-strings. It works great for typed UI components.
Also it is the suite of tools to boost the developer experience:
- Pylint [plugin](https://jkmnt.github.io/htmf/lint) checking if expressions are HTML-safe and markup is not soup
- VSCode [syntax highlighter](https://jkmnt.github.io/htmf/highlight)
- HTML [formatter](https://jkmnt.github.io/htmf/format)
---
Read the [documentation](https://jkmnt.github.io/htmf)
---
## Installation
```shell
pip install htmf
```
## Working example

Github markdown doesn't support the syntax highlight for htmf (yet :-), so it's presented as an image here.
[Documentation](https://jkmnt.github.io/htmf) site shows this example as proper code and
explains the ideas and motivation.
Logo by Alexander Kuliev