You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to serve these error-page templates from Caddy, without running an additional service.
Not only it wouldn't need an additional server running, but I could use variables from Caddy directly, like respond{err.status_code}{err.status_text} but also many others in the "details".
They are both written in Go, and use templating.
Unfortunately I'm myself not fluent in Go or Go templating. But maybe somebody has already done that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Would it be possible to serve these error-page templates from Caddy, without running an additional service.
Not only it wouldn't need an additional server running, but I could use variables from Caddy directly, like respond
{err.status_code}
{err.status_text}
but also many others in the "details".They are both written in Go, and use templating.
Unfortunately I'm myself not fluent in Go or Go templating. But maybe somebody has already done that?
Beta Was this translation helpful? Give feedback.
All reactions