- Fix template rendering by storing rendered HTML in variable before writing
This resolves subdirectories not appearing in navigation despite being
correctly detected and included in template variables
- Add missing template variables (paths.work_dir) to gallery config
- Add CGI refresh handler for web-based gallery regeneration
- Improve PDF export functionality with better error handling
- Add ESC key shortcut documentation for exiting selection mode
- Enhanced export manager with proper dependency checking
Fixes issue where new subdirectories were detected but not displayed
in browser navigation due to incomplete template rendering.