proxy.golang.org : github.com/aaronland/go-http-bootstrap : v0.4.0
`go-http-bootstrap` is an HTTP middleware package for including Bootstrap.js assets in web applications. It exports two principal methods: * `bootstrap.AppendAssetHandlers(*http.ServeMux)` which is used to append HTTP handlers to a `http.ServeMux` instance for serving Bootstrap CSS and JavaScript files, and related assets. * `bootstrap.AppendResourcesHandler(http.Handler, *BootstrapOptions)` which is used to rewrite any HTML produced by previous handler to include the necessary markup to load Bootstrap JavaScript files and related assets. Example All of the Bootstrap files in the static/css(static/css) and static/javascript(static/javascript) are registered with your `http.ServeMux` instance when you call `bootstrap.AppendAssetHandlers` but by default only the `css/bootstrap.min.css` is included in the list of CSS and Javascript resources to append to HTML content when you call the `bootstrap.DefaultBootstrapOptions()` method. If there are other Bootstrap-related files you need to access in your application you will need to add them to the `BootstrapOptions.CSS` and `Bootstrap.JS` properties manually.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/aaronland/[email protected]
Published:
Indexed:
- github.com/aaronland/go-http-rewrite v1.1.0
- github.com/aaronland/go-http-static v0.0.3
- github.com/aaronland/go-log/v2 v2.0.0
- github.com/sfomuseum/go-http-rollup v0.0.2
- github.com/tdewolff/minify/v2 v2.12.4
- github.com/tdewolff/parse/v2 v2.6.4
- golang.org/x/net v0.8.0