Skip to content

Conversation

@Feerdus95
Copy link
Collaborator

📝 Description

Refactored the organization of application templates by moving them to a dedicated app/ directory and removing the redundant app- prefix from filenames. This improves code organization and maintainability while keeping all existing functionality intact.

🔂 Changes Made

  • Created a new templates/app/ directory
  • Moved all application templates from root templates/ to templates/app/
  • Removed app- prefix from template filenames
  • Updated all template references in main_site.py
  • Verified all routes and functionality remain unchanged

⚙️ Related Issue

🍏 Type of Change

  • Refactoring

🎁 Acceptance Criteria

  • All application templates moved to templates/app/
  • Template filenames updated to remove app- prefix
  • All template references in Python code updated
  • All application routes continue to work as before
  • No broken links or missing templates

🧰 New Environment Variables or Requirements

No new environment variables or requirements were added. This is a purely organizational change.

🧪 How to test

Start the development server: FLASK_DEBUG=1 FLASK_APP=main_site.py flask run
Visit each of the following URLs to verify they load correctly:

Verify that all pages render correctly with proper styling and functionality

🚀 Deployment Notes (if applicable)

  • No special deployment steps required
  • The change is backward compatible as all routes remain the same
  • No database migrations needed

📸 Screenshots (if applicable)

Add relevant screenshots to explain visual changes.

✅ Checklist

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have commented my code where necessary.
  • I have tested my code locally and verified the website is working as expected.
  • I have added documentation in the README. (Not applicable - no functional changes)
  • I have added tests that prove my fix is effective or that my feature works. (Not applicable - no functional changes)
  • New and existing unit tests pass locally with my changes.

- Moved all app-*.html files to templates/app/ directory
- Removed app- prefix from template filenames
- Updated all template references in main_site.py
- Maintained all existing URL endpoints and functionality
- Improved code organization and maintainability

Fixes #699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Implemented or Addressed ✅

Development

Successfully merging this pull request may close these issues.

Organize application templates into templates/app/ and remove app- prefix from filenames

3 participants