# 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 [![CI](https://github.com/tammoippen/tagic/actions/workflows/CI.yml/badge.svg)](https://github.com/tammoippen/tagic/actions/workflows/CI.yml) [![PyPi version](https://img.shields.io/pypi/v/tagic.svg)](https://pypi.python.org/pypi/tagic) [![Python Versions](https://img.shields.io/badge/python-3.11-brightgreen.svg)](https://img.shields.io/badge/python-3.11-brightgreen.svg) [![Downloads](https://static.pepy.tech/badge/tagic/month)](https://pepy.tech/project/tagic) [![codestyle black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](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 Example Website

Some text with tags in between