Some text with tags in between
# pyx **Repository Path**: GodanKing/pyx ## Basic Information - **Project Name**: pyx - **Description**: 使用良好的语法构建html - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-19 - **Last Updated**: 2024-01-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pyx 使用良好的语法构建html。 > 本项目源于 [tagic](https://github.com/tammoippen/tagic) ,做了Python3.8兼容,原项目只能用于Python3.11及以上。 ## 安装 ```bash > pip install git+https://gitee.com/GodanKing/pyx ``` ## 例子 ```python from tagic.html import * print( html[ head[ title["Example Website"], meta( name="description", content="This is an example website build with tagic", ), ], body[ header(id="header")[h1["Awesome"]], main[p["Some text ", span["with tags"], "in between"]], footer(hidden=True), ], ].render(indent=True) ) ``` 输出 ```html
Some text with tags in between