An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.8% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/moapis/ehtml

Package ehtml provides ways of rendering an error html page, using Go templates. It supports status code specific templates, with fallback to a generic error template. If no templates are defined, it uses a simple placeholder template. Define some templates: Parse them into a globale variable (or part of your Handler object): If you are using Gorilla mux, set the `NotFoundHandler` Optionally, extend `Data` to add more context. As an alternative, you can also roll your own implementation of `Provider`. And whenever something goes wrong in your handlers, call `Render()`:

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/moapis/ehtml
License: BSD-3-Clause
Latest release: almost 6 years ago
First release: almost 6 years ago
Namespace: github.com/moapis
Dependent packages: 1
Dependent repositories: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 22 hours ago

    Loading...
    Readme
    Loading...