Skip to content

Add support for HTML namespaces, such as SVG #56

Open
@MaddyGuthridge

Description

@MaddyGuthridge

Currently, PyHTML only supports the main HTML namespace. It would be awesome to add support for other namespaces such as SVG to be able to group tags.

Potential usage:

import pyhtml as p
from pyhtml import svg  # serves as the svg tag in the main namespace as well as an entry-point to the SVG namespace

p.html(
    p.body(
        p.svg(  # same as just svg
            svg.path(...),
        ),
    ),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions