deno.land / x / opine@2.3.4 / examples / error-pages
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.tsafter 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.tsVersion Info