https://github.com/aep/sour
go fiber middleware
https://github.com/aep/sour
Last synced: about 1 month ago
JSON representation
go fiber middleware
- Host: GitHub
- URL: https://github.com/aep/sour
- Owner: aep
- Created: 2020-12-19T17:08:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T17:27:09.000Z (over 5 years ago)
- Last Synced: 2025-02-24T14:54:34.476Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
middleware for gin-gonic
------------------------
# Static
cache busting with content-hashed filenames.
i.e. /static/foo.png is loaded as /static/foo-123123123.png
usage:
```go
app.Use(fibers.StaticMiddleware(rice.MustFindBox("static"), "/static"))
```
and in views:
```
```
pass .static to c.Render, since views.AddFunc seems broken?
https://github.com/gofiber/template/issues/77