pub fn generate_error_overlay(error: &str) -> Result<String, String>Expand description
Generate an HTML error overlay page.
Creates a styled error page that displays build errors in the browser. The overlay includes:
- Dark theme for reduced eye strain
- Properly escaped error messages
- Retry button to manually trigger rebuild
§Arguments
error- Error message to display
§Returns
HTML string ready to serve, or an error if generation fails
§Security
- HTML-escapes error messages to prevent XSS
- No inline JavaScript execution from error content
- CSP-compatible (no eval, unsafe-inline limited to style)