package templates import ( "os" "path/filepath" "regexp" "strings" "testing" ) // CSP tripwire. // // script-src is hash-allow-listed (no 'unsafe-inline' — see // internal/middleware/security_headers.go). That makes the browser refuse, // silently at build time, two authoring patterns: // // 1. Inline