Some text with tags in between
# tagic **Repository Path**: GodanKing/tagic ## Basic Information - **Project Name**: tagic - **Description**: 调整tagic项目兼容3.8 - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-16 - **Last Updated**: 2025-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [](https://github.com/tammoippen/tagic/actions/workflows/CI.yml) [](https://pypi.python.org/pypi/tagic) [](https://img.shields.io/badge/python-3.11-brightgreen.svg) [](https://pepy.tech/project/tagic) [](https://github.com/psf/black) [](https://github.com/astral-sh/ruff) # tagic Build html / xhtml with a nice syntax. ## Goals - generate html / xhtml with a nice syntax - have typing support - have editor support for arguments, I used MDN as a reference. - KISS: no more than generation ## Install ```sh > pip install tagic ``` ## Example ```py 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) ) ``` Will return ```html
Some text with tags in between