mirror of
https://github.com/Hopiu/bowser.git
synced 2026-03-16 19:10:24 +00:00
Features: - Add Jinja2 template engine for page rendering - Create startpage with Bowser branding and version info - Create error page templates for 404, 500, and network errors - Support for about:startpage special URL - Custom error message support in templates - Graceful fallback rendering if template fails - Browser now starts with startpage when no URL provided Templates: - assets/pages/startpage.html - Beautiful purple gradient intro page - assets/pages/error_404.html - Pink gradient 404 error page - assets/pages/error_500.html - Red gradient 500 error page - assets/pages/error_network.html - Orange gradient network error page Code: - src/templates.py - Template rendering utilities with Jinja2 - Updated main.py to use startpage as default - Updated Frame.load() to handle about: URLs and render errors with templates - Added 7 comprehensive template tests All 62 core tests passing (excluding GTK-dependent tests) |
||
|---|---|---|
| .. | ||
| pages | ||
| default.css | ||
| WebBowser.jpeg | ||
| WebBowserLogo.jpeg | ||