This release introduces major changes and is not backwards compatible
Update to optionally use sfomuseum/go-http-rollup. CSS and JavaScript files are bundled and minified if enabled and if there are more than two files being served.
Add LeafletOptions.RollupAssets flag to trigger use of go-http-rollup
Remove all *WithPrefix methods
Add LeafletOptions.Prefix option to indicate optional URI prefix for resources and assets
Add LeafletOptions.Logger flag which is populated by default logger which writes to io.Discard
Replace LEAFLET_APPEND_RESOURCES constant with LeafletOptions.AppendLeafletResources flag
Replace LEAFLET_APPEND_ASSETS constant with LeafletOptions.AppendLeafletAssets flag
This release introduces major changes and is not backwards compatible
sfomuseum/go-http-rollup
. CSS and JavaScript files are bundled and minified if enabled and if there are more than two files being served.LeafletOptions.RollupAssets
flag to trigger use ofgo-http-rollup
*WithPrefix
methodsLeafletOptions.Prefix
option to indicate optional URI prefix for resources and assetsLeafletOptions.Logger
flag which is populated by default logger which writes toio.Discard
LEAFLET_APPEND_RESOURCES
constant withLeafletOptions.AppendLeafletResources
flagLEAFLET_APPEND_ASSETS
constant withLeafletOptions.AppendLeafletAssets
flag