Example of how to use Opine's template engine and rendering capabilities for custom error pages.
Run this example using:
deno run --allow-net --allow-read --allow-env ./examples/error-pages/index.ts
after cloning the repo locally.
To turn off verbose errors, set DENO_ENV=production
. For example:
DENO_ENV=production deno run --allow-net --allow-read --allow-env ./examples/error-pages/index.ts