Skip to content

Move shared HTML templates to shared-templates folder#548

Merged
bitterpanda63 merged 1 commit into
mainfrom
move-html-files-to-shared-resources
Dec 15, 2025
Merged

Move shared HTML templates to shared-templates folder#548
bitterpanda63 merged 1 commit into
mainfrom
move-html-files-to-shared-resources

Conversation

@bitterpanda63

Copy link
Copy Markdown
Member

This PR moves shared HTML templates to a centralized shared-templates folder and converts all sample apps to use symlinks.

Changes Made:

  • Created folder with subfolders for different template types:

      • for MySQL, MSSQL, Clickhouse apps
      • for PostgreSQL apps
      • for MongoDB apps
  • Converted the following apps to use symlinks:

Postgres Apps (using postgres templates):

  • flask-postgres
  • flask-postgres-gevent
  • flask-postgres-xml
  • starlette-postgres-uvicorn
  • quart-postgres-uvicorn
  • fastapi-postgres-uvicorn

Common Apps (using common templates):

  • flask-mysql
  • flask-mysql-uwsgi
  • flask-mssql
  • flask-clickhouse-uwsgi

Mongo Apps (using mongo templates):

  • flask-mongo
  • quart-mongo

Benefits:

  1. Reduced Duplication: Eliminates duplicate HTML files across multiple apps
  2. Easier Maintenance: Changes to shared templates automatically apply to all apps
  3. Consistency: Ensures all apps use identical templates
  4. Smaller Repository: Reduces overall repository size

App-Specific Templates:

    • Kept app-specific templates (execute.html, open_file.html, request.html, shell.html)
    • Kept app-specific template (xml.html)

Testing:

All symlinks have been verified to point to valid files and the templates render correctly when accessed through the symlinks.

…s to use symlinks

- Created shared-templates folder with common, postgres, and mongo subfolders
- Converted all sample apps to use symlinks pointing to shared templates
- Postgres apps (flask-postgres, flask-postgres-gevent, flask-postgres-xml, starlette-postgres-uvicorn, quart-postgres-uvicorn, fastapi-postgres-uvicorn) now use postgres shared templates
- MySQL/MSSQL/Clickhouse apps (flask-mysql, flask-mysql-uwsgi, flask-mssql, flask-clickhouse-uwsgi) now use common shared templates
- Mongo apps (flask-mongo, quart-mongo) now use mongo shared templates
- App-specific templates (flask-mysql extra templates, flask-postgres-xml/xml.html) left unchanged

This reduces duplication and makes it easier to maintain consistent templates across all sample applications.
@bitterpanda63
bitterpanda63 merged commit 4d352bb into main Dec 15, 2025
104 of 105 checks passed
@bitterpanda63
bitterpanda63 deleted the move-html-files-to-shared-resources branch December 15, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants