Phase: Jinja2 Removal (pal-e-docs backend)
Goal: Remove the dead Jinja2 frontend from the pal-e-docs backend now that SvelteKit serves all routes.
Owner: Dev agent
Repo:
forgejo_admin/pal-e-docsDepends on:
phase-pal-e-docs-note-rendererProblem
SvelteKit (pal-e-app) now renders all note types from the blocks API. The Jinja2 frontend (
/browse/* routes) is dead code still deployed in the backend. ~320 lines of routing + ~460 lines of templates + dependencies.Fix
- Delete
src/pal_e_docs/routes/frontend.py - Delete
src/pal_e_docs/templates/directory (base.html, note.html, landing.html, projects.html, project_notes.html, tags.html, tag_notes.html, repos.html, login.html) - Remove
Jinja2Templatesimport and setup - Remove
frontend.routerfrom the FastAPI app includes - Remove session auth middleware if only used by frontend (check if API uses it too)
- Remove
autolink.py,sanitize.py,wrap_tables.pyif only consumed by frontend routes (check if blocks/sync.py or API routes use them) - Remove
Jinja2anditsdangerous(sessions) from dependencies if no longer needed - Run tests:
pytest tests/ -v
Related
phase-pal-e-docs-note-renderer— parent phaseplan-pal-e-docs— parent plan