Documentation ¶
Index ¶
- func AppendResourcesHandler(next http.Handler, opts *ResourcesOptions) http.Handler
- func AppendResourcesHandlerWithPrefix(next http.Handler, opts *ResourcesOptions, prefix string) http.Handler
- func AppendStaticAssetHandlers(mux *http.ServeMux, static_fs fs.FS) error
- func AppendStaticAssetHandlersWithPrefix(mux *http.ServeMux, static_fs fs.FS, prefix string) error
- func StaticAssetsHandler(static_fs fs.FS) (http.Handler, error)
- func StaticAssetsHandlerWithPrefix(static_fs fs.FS, prefix string) (http.Handler, error)
- type ResourcesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendResourcesHandler ¶
func AppendResourcesHandler(next http.Handler, opts *ResourcesOptions) http.Handler
Types ¶
type ResourcesOptions ¶
type ResourcesOptions struct { JS []string CSS []string DataAttributes map[string]string AppendJavaScriptAtEOF bool }
ResourcesOptions provides a list of JavaScript and CSS link to include with HTML output.
func DefaultResourcesOptions ¶
func DefaultResourcesOptions() *ResourcesOptions
Return a *ResourcesOptions struct with default paths and URIs.
Click to show internal directories.
Click to hide internal directories.