#!/usr/bin/env python3
"""Quick syntax test for html_generator.py"""

import sys

try:
    import html_generator
    print("SUCCESS: html_generator.py imports without syntax errors!")
    print(f"escape_js_string function exists: {hasattr(html_generator, 'escape_js_string')}")
    sys.exit(0)
except SyntaxError as e:
    print(f"SYNTAX ERROR: {e}")
    print(f"  File: {e.filename}")
    print(f"  Line: {e.lineno}")
    print(f"  Text: {e.text}")
    sys.exit(1)
except Exception as e:
    print(f"ERROR: {e}")
    sys.exit(1)

