"""Converts a KDL tree in stdin into a HTML file using kdlj2's renderer."""

from sys import stdin

from kdl import parse

from kdlj2_web import render_node_list


def main() -> None:
    """Execute the kdl-to-html entry point."""
    print(render_node_list(parse(stdin.read()).getAll(None)))
