scripts

command
v0.1.149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

cmd/validate-hyperscript/main.go

Validates hyperscript syntax in HTML/Go template files using the hyperscript parser running in goja (pure Go JavaScript runtime).

Usage:

validate-hyperscript [flags] <file1.html> [dir1] [file2.html.tmpl ...]

Flags:

-json          Output raw JSON instead of human-readable format
-hyperscript   Path to local hyperscript.js (default: fetch from CDN)
-quiet         Only output errors, not valid results
-ext           File extensions to process (default: .html,.tmpl,.gohtml)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL