yera.runtime.glyphs

Named SVG glyphs used by HTMX renderers.

Symbols

def glyph — Render a named Yera glyph as SVG markup.
def validate_glyph — Validate and return a registered Yera glyph name.

glyph

glyph(
    name: str,
) → str

Render a named Yera glyph as SVG markup.

Parameters

name
type: str

Registered glyph name.

Returns

type: str

SVG markup for the requested glyph.

Raises

ValueError

If the glyph name is not registered.

validate_glyph

validate_glyph(
    name: str,
) → str

Validate and return a registered Yera glyph name.

Parameters

name
type: str

Glyph name to validate.

Returns

type: str

The validated glyph name.

Raises

ValueError

If the glyph name is not registered.