Files
firefrost-services/services
Claude (Chronicler #57) ddefe851f4 fix: implement express-ejs-layouts for proper template inheritance
ISSUE:
EJS v3+ removed ability to pass raw template strings to include()
Dashboard template used old pattern causing 'include is not a function' error

SOLUTION (per Gemini consultation):
1. Installed express-ejs-layouts package
2. Added expressLayouts middleware to index.js
3. Set default layout to 'layout'
4. layout.ejs already had <%- body %> injection point
5. Removed include() wrapper from dashboard.ejs (first/last lines)

FILES MODIFIED:
- services/arbiter-3.0/src/index.js (+4 lines - import and config)
- services/arbiter-3.0/src/views/admin/dashboard.ejs (-2 lines - wrapper removal)

TESTING:
Visit /admin after Discord OAuth - should render HTML dashboard

Credit: Gemini consultation - EJS v3+ layout pattern fix

Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>
2026-04-03 17:27:30 +00:00
..